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 3.6 KiB

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