Author: jhm
Date: Thu Jan  4 04:48:22 2007
New Revision: 492552

URL: http://svn.apache.org/viewvc?view=rev&rev=492552
Log:
Add an example how to store a program-version info in the manifest. Make the 
code more readable.

Modified:
    ant/core/trunk/docs/manual/CoreTasks/jar.html

Modified: ant/core/trunk/docs/manual/CoreTasks/jar.html
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/docs/manual/CoreTasks/jar.html?view=diff&rev=492552&r1=492551&r2=492552
==============================================================================
--- ant/core/trunk/docs/manual/CoreTasks/jar.html (original)
+++ ant/core/trunk/docs/manual/CoreTasks/jar.html Thu Jan  4 04:48:22 2007
@@ -324,10 +324,14 @@
     If a JAR file has more that one implementation of the service, a number of
     nested <provider> elements may be used.
   </p>
+  
+  
 <h3>Examples</h3>
+
 <pre>  &lt;jar destfile=&quot;${dist}/lib/app.jar&quot; 
basedir=&quot;${build}/classes&quot;/&gt;</pre>
 <p>jars all files in the <code>${build}/classes</code> directory into a file
 called <code>app.jar</code> in the <code>${dist}/lib</code> directory.</p>
+
 <pre>  &lt;jar destfile=&quot;${dist}/lib/app.jar&quot;
        basedir=&quot;${build}/classes&quot;
        excludes=&quot;**/Test.class&quot;
@@ -335,6 +339,7 @@
 <p>jars all files in the <code>${build}/classes</code> directory into a file
 called <code>app.jar</code> in the <code>${dist}/lib</code> directory. Files
 with the name <code>Test.class</code> are excluded.</p>
+
 <pre>  &lt;jar destfile=&quot;${dist}/lib/app.jar&quot;
        basedir=&quot;${build}/classes&quot;
        includes=&quot;mypackage/test/**&quot;
@@ -344,6 +349,7 @@
 called <code>app.jar</code> in the <code>${dist}/lib</code> directory. Only
 files under the directory <code>mypackage/test</code> are used, and files with
 the name <code>Test.class</code> are excluded.</p>
+
 <pre>  &lt;jar destfile=&quot;${dist}/lib/app.jar&quot;&gt;
     &lt;fileset dir=&quot;${build}/classes&quot;
              excludes=&quot;**/Test.class&quot;
@@ -363,6 +369,7 @@
     &lt;include name=&quot;build&quot;/&gt;
     &lt;manifest&gt;
       &lt;attribute name=&quot;Built-By&quot; 
value=&quot;${user.name}&quot;/&gt;
+      &lt;attribute name=&quot;Program-Version&quot; 
value=&quot;1.0.0beta2&quot;/&gt;
       &lt;section name=&quot;common/class1.class&quot;&gt;
         &lt;attribute name=&quot;Sealed&quot; value=&quot;false&quot;/&gt;
       &lt;/section&gt;
@@ -375,6 +382,7 @@
 </p>
 <pre><code>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 @@
            provider="org.acme.PinkyLanguage"/&gt;
 &lt;/jar&gt;
 </pre></blockquote>
+
 <p>
   The following shows how to create a jar file specifing a service
   with two implementations of the JDK6 scripting interface:
@@ -404,5 +413,8 @@
   &lt;/service&gt;
 &lt;/jar&gt;
 </pre></blockquote>
+
+
+
 </body>
 </html>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to