From 9a70e04f033e7d2f862cf4ffb67826b2e37dbdf4 Mon Sep 17 00:00:00 2001 From: Jan Materne Date: Thu, 4 Jan 2007 15:08:09 +0000 Subject: [PATCH] Use the attribute name as provided in the jar-docs and suggested by Antoine. "Update" Ant. Use more "application information". git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@492592 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/CoreTasks/jar.html | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/docs/manual/CoreTasks/jar.html b/docs/manual/CoreTasks/jar.html index c6ad72bb6..2d8dd137e 100644 --- a/docs/manual/CoreTasks/jar.html +++ b/docs/manual/CoreTasks/jar.html @@ -368,22 +368,29 @@ by Java).

  <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