source: other-projects/trunk/realistic-books/packages/AntInstaller/web/manual1.7.0/manual/OptionalTasks/jarlib-manifest.html@ 19253

Last change on this file since 19253 was 19253, checked in by davidb, 15 years ago

Establishing a source code repository for Veronica's Realistic Book's software

File size: 4.4 KB
Line 
1<!--
2 Licensed to the Apache Software Foundation (ASF) under one or more
3 contributor license agreements. See the NOTICE file distributed with
4 this work for additional information regarding copyright ownership.
5 The ASF licenses this file to You under the Apache License, Version 2.0
6 (the "License"); you may not use this file except in compliance with
7 the License. You may obtain a copy of the License at
8
9 http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16-->
17<html>
18
19<head>
20<meta http-equiv="Content-Language" content="en-us">
21<link rel="stylesheet" type="text/css" href="../stylesheets/style.css">
22<title>jarlib-manifest Task</title>
23</head>
24
25<body>
26
27<h2><a name="jarlib-manifest">jarlib-manifest</a></h2>
28<h3>Description</h3>
29<p>Task to generate a manifest that declares all the dependencies
30 in manifest. The dependencies are determined by looking in the
31 specified path and searching for Extension / "Optional Package"
32 specifications in the manifests of the jars.</p>
33
34<p>Note that this task
35works with extensions as defined by the "Optional Package" specification.
36 For more information about optional packages, see the document
37<em>Optional Package Versioning</em> in the documentation bundle for your
38Java2 Standard Edition package, in file
39<code>guide/extensions/versioning.html</code> or online at
40<a href="http://java.sun.com/j2se/1.3/docs/guide/extensions/versioning.html">
41http://java.sun.com/j2se/1.3/docs/guide/extensions/versioning.html</a>.</p>
42<p>See the Extension and ExtensionSet documentation for further details</p>
43
44<h3>Parameters</h3>
45<table border="1" cellpadding="2" cellspacing="0">
46 <tr>
47 <td valign="top"><b>Attribute</b></td>
48 <td valign="top"><b>Description</b></td>
49 <td align="center" valign="top"><b>Required</b></td>
50 </tr>
51 <tr>
52 <td valign="top">destfile</td>
53 <td valign="top">The file to generate Manifest into</td>
54 <td valign="top" align="center">Yes.</td>
55 </tr>
56</table>
57<h3>Parameters specified as nested elements</h3>
58
59<h4>extension</h4>
60 <p><a href="../OptionalTypes/extension.html">Extension</a> the extension
61 that this library implements.</p>
62
63<h4>depends</h4>
64 <p><a href="../OptionalTypes/extensionset.html">ExtensionSet</a>s containing
65 all dependencies for jar.</p>
66
67<h4>options</h4>
68 <p><a href="../OptionalTypes/extensionset.html">ExtensionSet</a>s containing
69 all optional dependencies for jar. (Optional dependencies will be used if
70 present else they will be ignored)</p>
71
72<h3>Examples</h3>
73<p><b>Basic Manifest generated for single Extension</b></p>
74<pre>
75&lt;extension id=&quot;e1&quot;
76 extensionName=&quot;MyExtensions&quot;
77 specificationVersion=&quot;1.0&quot;
78 specificationVendor=&quot;Peter Donald&quot;
79 implementationVendorID=&quot;vv&quot;
80 implementationVendor=&quot;Apache&quot;
81 implementationVersion=&quot;2.0&quot;
82 implementationURL=&quot;http://somewhere.com&quot;/&gt;
83
84&lt;jarlib-manifest destfile=&quot;myManifest.txt&quot;&gt;
85 &lt;extension refid=&quot;e1&quot;/&gt;
86&lt;/jarlib-manifest&gt;
87</pre>
88
89<p><b>Search for extension in fileset</b></p>
90<p><b>A large example with required and optional dependencies</b></p>
91<pre>
92&lt;extension id=&quot;e1&quot;
93 extensionName=&quot;MyExtensions&quot;
94 specificationVersion=&quot;1.0&quot;
95 specificationVendor=&quot;Peter Donald&quot;
96 implementationVendorID=&quot;vv&quot;
97 implementationVendor=&quot;Apache&quot;
98 implementationVersion=&quot;2.0&quot;
99 implementationURL=&quot;http://somewhere.com&quot;/&gt;
100
101&lt;extensionSet id=&quot;option.ext&quot;&gt;
102 &lt;libfileset dir=&quot;lib/option&quot;&gt;
103 &lt;include name=&quot;**/*.jar&quot;/&gt;
104 &lt;/libfileset&gt;
105&lt;/extensionSet&gt;
106
107&lt;extensionSet id=&quot;depends.ext&quot;&gt;
108 &lt;libfileset dir=&quot;lib/required&quot;&gt;
109 &lt;include name=&quot;*.jar&quot;/&gt;
110 &lt;/libfileset&gt;
111&lt;/extensionSet&gt;
112
113&lt;jarlib-manifest destfile=&quot;myManifest.txt&quot;&gt;
114 &lt;extension refid=&quot;e1&quot;/&gt;
115 &lt;depends refid=&quot;depends.ext&quot;/&gt;
116 &lt;options refid=&quot;option.ext&quot;/&gt;
117&lt;/jarlib-manifest&gt;
118</pre>
119
120
121
122</body>
123</html>
124
Note: See TracBrowser for help on using the repository browser.