Single jar combo
Added a build rule to combine all jars into one jar for ease of distribution and execution. Ideally this should be done after putting swt.jar into lib/ but not sure how that ought to be managed.
This commit is contained in:
10
build.xml
10
build.xml
@ -51,6 +51,16 @@
|
||||
<target name="jar" depends="compile" description="generate the jar file">
|
||||
<jar jarfile="${dist.lib.jar}" basedir="${build.dir}" />
|
||||
</target>
|
||||
|
||||
<target name="jarjar" depends="jar" description="Combine all jars">
|
||||
<jar jarfile="syndie.jar" index="true">
|
||||
<manifest>
|
||||
<attribute name="Main-Class" value="syndie.gui.SWTUI"/>
|
||||
</manifest>
|
||||
<zipfileset src="${dist.lib.jar}" includes="**" />
|
||||
<zipgroupfileset dir="lib" includes="*.jar"/>
|
||||
</jar>
|
||||
</target>
|
||||
|
||||
<target name="run" depends="jar" description="run syndie">
|
||||
<condition property="run.args" value="">
|
||||
|
Reference in New Issue
Block a user