Skip to content

Instantly share code, notes, and snippets.

@Dahie
Created October 3, 2009 09:35
Show Gist options
  • Save Dahie/200540 to your computer and use it in GitHub Desktop.
Save Dahie/200540 to your computer and use it in GitHub Desktop.
<fileset id="lib.jars" dir="${lib}">
<include name="**/*.jar"/>
</fileset>
<target name="jar.include" depends="compile" if="include.do">
<echo message="Extracting and including library jars in main jar, onejar.use=${onejar.use}."/>
<jar jarfile="${jarfile}" basedir="${bin}" manifest="${manifest}/main-MANIFEST.MF">
<!-- Merge library jars into final jar file -->
<zipgroupfileset refid="lib.jars" />
</jar>
</target>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment