From 9a70e04f033e7d2f862cf4ffb67826b2e37dbdf4 Mon Sep 17 00:00:00 2001
From: Jan Materne
<jar destfile="test.jar" basedir="."> <include name="build"/> <manifest> + <!-- Who is building this jar? --> <attribute name="Built-By" value="${user.name}"/> - <attribute name="Program-Version" value="1.0.0beta2"/> + <!-- Information about the program itself --> + <attribute name="Implementation-Vendor" value="ACME inc."/> + <attribute name="Implementation-Title" value="GreatProduct"/> + <attribute name="Implementation-Version" value="1.0.0beta2"/> + <!-- details --> <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: +This is an example of an inline manifest specification including the version of the build +program (Implementation-Version). 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
-Program-Version: 1.0.0beta2
-Created-By: Apache Ant 1.6.5
+Implementation-Vendor: ACME inc.
+Implementation-Title: GreatProduct
+Implementation-Version: 1.0.0beta2
+Created-By: Apache Ant 1.7.0
Name: common/MyClass.class
Sealed: false