[19253] | 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
|
---|
| 35 | works 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
|
---|
| 38 | Java2 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">
|
---|
| 41 | http://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 | <extension id="e1"
|
---|
| 76 | extensionName="MyExtensions"
|
---|
| 77 | specificationVersion="1.0"
|
---|
| 78 | specificationVendor="Peter Donald"
|
---|
| 79 | implementationVendorID="vv"
|
---|
| 80 | implementationVendor="Apache"
|
---|
| 81 | implementationVersion="2.0"
|
---|
| 82 | implementationURL="http://somewhere.com"/>
|
---|
| 83 |
|
---|
| 84 | <jarlib-manifest destfile="myManifest.txt">
|
---|
| 85 | <extension refid="e1"/>
|
---|
| 86 | </jarlib-manifest>
|
---|
| 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 | <extension id="e1"
|
---|
| 93 | extensionName="MyExtensions"
|
---|
| 94 | specificationVersion="1.0"
|
---|
| 95 | specificationVendor="Peter Donald"
|
---|
| 96 | implementationVendorID="vv"
|
---|
| 97 | implementationVendor="Apache"
|
---|
| 98 | implementationVersion="2.0"
|
---|
| 99 | implementationURL="http://somewhere.com"/>
|
---|
| 100 |
|
---|
| 101 | <extensionSet id="option.ext">
|
---|
| 102 | <libfileset dir="lib/option">
|
---|
| 103 | <include name="**/*.jar"/>
|
---|
| 104 | </libfileset>
|
---|
| 105 | </extensionSet>
|
---|
| 106 |
|
---|
| 107 | <extensionSet id="depends.ext">
|
---|
| 108 | <libfileset dir="lib/required">
|
---|
| 109 | <include name="*.jar"/>
|
---|
| 110 | </libfileset>
|
---|
| 111 | </extensionSet>
|
---|
| 112 |
|
---|
| 113 | <jarlib-manifest destfile="myManifest.txt">
|
---|
| 114 | <extension refid="e1"/>
|
---|
| 115 | <depends refid="depends.ext"/>
|
---|
| 116 | <options refid="option.ext"/>
|
---|
| 117 | </jarlib-manifest>
|
---|
| 118 | </pre>
|
---|
| 119 |
|
---|
| 120 |
|
---|
| 121 |
|
---|
| 122 | </body>
|
---|
| 123 | </html>
|
---|
| 124 |
|
---|