1 | <html>
|
---|
2 |
|
---|
3 | <head>
|
---|
4 | <meta http-equiv="Content-Language" content="en-us">
|
---|
5 | <title>jarlib-manifest Task</title>
|
---|
6 | <link rel="stylesheet" type="text/css" href="../stylesheets/antmanual.css">
|
---|
7 | </head>
|
---|
8 |
|
---|
9 | <body>
|
---|
10 |
|
---|
11 | <h2><a name="jarlib-manifest">jarlib-manifest</a></h2>
|
---|
12 | <h3>Description</h3>
|
---|
13 | <p>Task to generate a manifest that declares all the dependencies
|
---|
14 | in manifest. The dependencies are determined by looking in the
|
---|
15 | specified path and searching for Extension / "Optional Package"
|
---|
16 | specifications in the manifests of the jars.</p>
|
---|
17 |
|
---|
18 | <p>Note that this task
|
---|
19 | works with extensions as defined by the "Optional Package" specification.
|
---|
20 | For more information about optional packages, see the document
|
---|
21 | <em>Optional Package Versioning</em> in the documentation bundle for your
|
---|
22 | Java2 Standard Edition package, in file
|
---|
23 | <code>guide/extensions/versioning.html</code> or online at
|
---|
24 | <a href="http://java.sun.com/j2se/1.3/docs/guide/extensions/versioning.html">
|
---|
25 | http://java.sun.com/j2se/1.3/docs/guide/extensions/versioning.html</a>.</p>
|
---|
26 | <p>See the Extension and ExtensionSet documentation for further details</p>
|
---|
27 |
|
---|
28 | <h3>Parameters</h3>
|
---|
29 | <table border="1" cellpadding="2" cellspacing="0">
|
---|
30 | <tr>
|
---|
31 | <td valign="top"><b>Attribute</b></td>
|
---|
32 | <td valign="top"><b>Description</b></td>
|
---|
33 | <td align="center" valign="top"><b>Required</b></td>
|
---|
34 | </tr>
|
---|
35 | <tr>
|
---|
36 | <td valign="top">destfile</td>
|
---|
37 | <td valign="top">The file to generate Manifest into</td>
|
---|
38 | <td valign="top" align="center">Yes.</td>
|
---|
39 | </tr>
|
---|
40 | </table>
|
---|
41 | <h3>Parameters specified as nested elements</h3>
|
---|
42 |
|
---|
43 | <h4>extension</h4>
|
---|
44 | <p><a href="../OptionalTypes/extension.html">Extension</a> the extension
|
---|
45 | that this library implements.</p>
|
---|
46 |
|
---|
47 | <h4>depends</h4>
|
---|
48 | <p><a href="../OptionalTypes/extensionset.html">ExtensionSet</a>s containing
|
---|
49 | all dependencies for jar.</p>
|
---|
50 |
|
---|
51 | <h4>options</h4>
|
---|
52 | <p><a href="../OptionalTypes/extensionset.html">ExtensionSet</a>s containing
|
---|
53 | all optional dependencies for jar. (Optional dependencies will be used if
|
---|
54 | present else they will be ignored)</p>
|
---|
55 |
|
---|
56 | <h3>Examples</h3>
|
---|
57 | <p><b>Basic Manifest generated for single Extension</b></p>
|
---|
58 | <pre>
|
---|
59 | <extension id="e1"
|
---|
60 | extensionName="MyExtensions"
|
---|
61 | specificationVersion="1.0"
|
---|
62 | specificationVendor="Peter Donald"
|
---|
63 | implementationVendorID="vv"
|
---|
64 | implementationVendor="Apache"
|
---|
65 | implementationVersion="2.0"
|
---|
66 | implementationURL="http://somewhere.com"/>
|
---|
67 |
|
---|
68 | <jarlib-manifest destfile="myManifest.txt">
|
---|
69 | <extension refid="e1"/>
|
---|
70 | </jarlib-manifest>
|
---|
71 | </pre>
|
---|
72 |
|
---|
73 | <p><b>Search for extension in fileset</b></p>
|
---|
74 | <p><b>A large example with required and optional dependencies</b></p>
|
---|
75 | <pre>
|
---|
76 | <extension id="e1"
|
---|
77 | extensionName="MyExtensions"
|
---|
78 | specificationVersion="1.0"
|
---|
79 | specificationVendor="Peter Donald"
|
---|
80 | implementationVendorID="vv"
|
---|
81 | implementationVendor="Apache"
|
---|
82 | implementationVersion="2.0"
|
---|
83 | implementationURL="http://somewhere.com"/>
|
---|
84 |
|
---|
85 | <extensionSet id="option.ext">
|
---|
86 | <libfileset dir="lib/option">
|
---|
87 | <include name="**/*.jar"/>
|
---|
88 | </libfileset>
|
---|
89 | </extensionSet>
|
---|
90 |
|
---|
91 | <extensionSet id="depends.ext">
|
---|
92 | <libfileset dir="lib/required">
|
---|
93 | <include name="*.jar"/>
|
---|
94 | </libfileset>
|
---|
95 | </extensionSet>
|
---|
96 |
|
---|
97 | <jarlib-manifest destfile="myManifest.txt">
|
---|
98 | <extension refid="e1"/>
|
---|
99 | <depends refid="depends.ext"/>
|
---|
100 | <options refid="option.ext"/>
|
---|
101 | </jarlib-manifest>
|
---|
102 | </pre>
|
---|
103 |
|
---|
104 | <hr><p align="center">Copyright © 2002,2004 The Apache Software Foundation.
|
---|
105 | All rights Reserved.</p>
|
---|
106 |
|
---|
107 | </body>
|
---|
108 | </html>
|
---|
109 |
|
---|