You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

jarlib-manifest.html 4.4 KiB

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