From 5be0ff33b8020b650b2dda4e75f804b4ed50a9fd Mon Sep 17 00:00:00 2001
From: Jan Materne
<jar destfile="${dist}/lib/app.jar" basedir="${build}/classes"/>
jars all files in the ${build}/classes directory into a file
called app.jar in the ${dist}/lib directory.
<jar destfile="${dist}/lib/app.jar"
basedir="${build}/classes"
excludes="**/Test.class"
@@ -335,6 +339,7 @@ called app.jar in the ${dist}/lib directory.
jars all files in the ${build}/classes directory into a file
called app.jar in the ${dist}/lib directory. Files
with the name Test.class are excluded.
+
<jar destfile="${dist}/lib/app.jar"
basedir="${build}/classes"
includes="mypackage/test/**"
@@ -344,6 +349,7 @@ with the name Test.class are excluded.
called app.jar in the ${dist}/lib directory. Only
files under the directory mypackage/test are used, and files with
the name Test.class are excluded.
+
<jar destfile="${dist}/lib/app.jar">
<fileset dir="${build}/classes"
excludes="**/Test.class"
@@ -363,6 +369,7 @@ by Java).
<include name="build"/>
<manifest>
<attribute name="Built-By" value="${user.name}"/>
+ <attribute name="Program-Version" value="1.0.0beta2"/>
<section name="common/class1.class">
<attribute name="Sealed" value="false"/>
</section>
@@ -375,6 +382,7 @@ produced by the above would look like this:
Manifest-Version: 1.0
Built-By: conor
+Program-Version: 1.0.0beta2
Created-By: Apache Ant 1.6.5
Name: common/MyClass.class
@@ -391,6 +399,7 @@ Sealed: false
provider="org.acme.PinkyLanguage"/>
</jar>
+
The following shows how to create a jar file specifing a service
with two implementations of the JDK6 scripting interface:
@@ -404,5 +413,8 @@ Sealed: false
</service>
</jar>
+
+
+