source: release-kits/lirk3/bin/ant-installer/web/manual1.6.2/manual/OptionalTasks/jarlib-manifest.html@ 14982

Last change on this file since 14982 was 14982, checked in by oranfry, 16 years ago

initial import of LiRK3

File size: 3.7 KB
Line 
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
19works 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
22Java2 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">
25http://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 wilkl be ignored)</p>
55
56<h3>Examples</h3>
57<p><b>Basic Manifest generated for single Extension</b></p>
58<pre>
59&lt;extension id=&quot;e1&quot;
60 extensionName=&quot;MyExtensions&quot;
61 specificationVersion=&quot;1.0&quot;
62 specificationVendor=&quot;Peter Donald&quot;
63 implementationVendorID=&quot;vv&quot;
64 implementationVendor=&quot;Apache&quot;
65 implementationVersion=&quot;2.0&quot;
66 implementationURL=&quot;http://somewhere.com&quot;/&gt;
67
68&lt;jarlib-manifest destfile=&quot;myManifest.txt&quot;&gt;
69 &lt;extension refid=&quot;e1&quot;/&gt;
70&lt;/jarlib-manifest&gt;
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&lt;extension id=&quot;e1&quot;
77 extensionName=&quot;MyExtensions&quot;
78 specificationVersion=&quot;1.0&quot;
79 specificationVendor=&quot;Peter Donald&quot;
80 implementationVendorID=&quot;vv&quot;
81 implementationVendor=&quot;Apache&quot;
82 implementationVersion=&quot;2.0&quot;
83 implementationURL=&quot;http://somewhere.com&quot;/&gt;
84
85&lt;extensionSet id=&quot;option.ext&quot;&gt;
86 &lt;libfileset dir=&quot;lib/option&quot;&gt;
87 &lt;include name=&quot;**/*.jar&quot;/&gt;
88 &lt;/libfileset&gt;
89&lt;/extensionSet&gt;
90
91&lt;extensionSet id=&quot;depends.ext&quot;&gt;
92 &lt;libfileset dir=&quot;lib/required&quot;&gt;
93 &lt;include name=&quot;*.jar&quot;/&gt;
94 &lt;/libfileset&gt;
95&lt;/extensionSet&gt;
96
97&lt;jarlib-manifest destfile=&quot;myManifest.txt&quot;&gt;
98 &lt;extension refid=&quot;e1&quot;/&gt;
99 &lt;depends refid=&quot;depends.ext&quot;/&gt;
100 &lt;options refid=&quot;option.ext&quot;/&gt;
101&lt;/jarlib-manifest&gt;
102</pre>
103
104<hr><p align="center">Copyright &copy; 2002,2004 The Apache Software Foundation.
105All rights Reserved.</p>
106
107</body>
108</html>
109
Note: See TracBrowser for help on using the repository browser.