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:
dream
2009-05-23 18:41:24 +00:00
parent 8444efe45a
commit 4394af98fa

View File

@ -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="">