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

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