diff --git a/docs/manual/CoreTasks/jar.html b/docs/manual/CoreTasks/jar.html index af39b8f8e..c6ad72bb6 100644 --- a/docs/manual/CoreTasks/jar.html +++ b/docs/manual/CoreTasks/jar.html @@ -324,10 +324,14 @@ empty or only contain files inside the META-INF directory.

If a JAR file has more that one implementation of the service, a number of nested <provider> elements may be used.

+ +

Examples

+
  <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>
+ + +