<jar destfile="${dist}/lib/app.jar" basedir="${build}/classes"/>jars all files in the
<jar destfile="${dist}/lib/app.jar" basedir="${build}/classes" excludes="**/Test.class" />jars all files in the
<jar destfile="${dist}/lib/app.jar" basedir="${build}/classes" includes="mypackage/test/**" excludes="**/Test.class" />jars all files in the
<jar destfile="${dist}/lib/app.jar"> <fileset dir="${build}/classes" excludes="**/Test.class" /> <fileset dir="${src}/resources"/> </jar>jars all files in the
<jar destfile="test.jar" basedir="."> <include name="build"/> <manifest> <attribute name="Built-By" value="${user.name}"/> <section name="common/class1.class"> <attribute name="Sealed" value="false"/> </section> </manifest> </jar>This is an example of an inline manifest specification. Note that the Built-By attribute will take the value of the Ant property ${user.name}. The manifest produced by the above would look like this:
Manifest-Version: 1.0 Built-By: conor Created-By: Apache Ant 1.5alpha Name: common/class1.class Sealed: false