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.

extensionset.html 3.0 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <!DOCTYPE html>
  2. <!--
  3. Licensed to the Apache Software Foundation (ASF) under one or more
  4. contributor license agreements. See the NOTICE file distributed with
  5. this work for additional information regarding copyright ownership.
  6. The ASF licenses this file to You under the Apache License, Version 2.0
  7. (the "License"); you may not use this file except in compliance with
  8. the License. You may obtain a copy of the License at
  9. https://www.apache.org/licenses/LICENSE-2.0
  10. Unless required by applicable law or agreed to in writing, software
  11. distributed under the License is distributed on an "AS IS" BASIS,
  12. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. See the License for the specific language governing permissions and
  14. limitations under the License.
  15. -->
  16. <html lang="en">
  17. <head>
  18. <link rel="stylesheet" type="text/css" href="../stylesheets/style.css">
  19. <title>ExtensionSet Type</title>
  20. </head>
  21. <body>
  22. <h2><a>ExtensionSet</a></h2>
  23. <p>Utility type that represents a set of Extensions.</p>
  24. <p>Note that this type works with extensions as defined by the "Optional Package" specification.
  25. For more information about optional packages, see the document <em>Optional Package Versioning</em>
  26. in the documentation bundle for your Java Standard Edition package, in
  27. file <samp>guide/extensions/versioning.html</samp> or online
  28. at <a href="https://docs.oracle.com/javase/8/docs/technotes/guides/versioning/spec/versioning2.html#wp90779"
  29. target="_top">Package Versioning documentation.</a></p>
  30. <p>The only supported attribute is <code>refid</code> which makes this
  31. <code>extensionset</code>
  32. a <a href="../using.html#references">reference</a> to
  33. an <code>extensionset</code> defined elsewhere. If specified no
  34. other attributes or nested elements are allowed.</p>
  35. <h3>Nested elements</h3>
  36. <h4>extension</h4>
  37. <p><a href="extension.html">Extension</a> object to add to set.</p>
  38. <h4>fileset</h4>
  39. <p><a href="fileset.html">FileSet</a>s all files contained contained within set that are jars and
  40. implement an extension are added to extension set.</p>
  41. <h4>libfileset</h4>
  42. <p>All files contained contained within set that are jars and implement an extension are added to
  43. extension set. However, the extension information may be modified by attributes of libfileset.</p>
  44. <h4>Examples</h4>
  45. <pre>
  46. &lt;extension id=&quot;e1&quot;
  47. extensionName=&quot;MyExtensions&quot;
  48. specificationVersion=&quot;1.0&quot;
  49. specificationVendor=&quot;Peter Donald&quot;
  50. implementationVendorID=&quot;vv&quot;
  51. implementationVendor=&quot;Apache&quot;
  52. implementationVersion=&quot;2.0&quot;
  53. implementationURL=&quot;https://somewhere.com/myExt.jar&quot;/&gt;
  54. &lt;libfileset id="lfs"
  55. includeUrl="true"
  56. includeImpl="false"
  57. dir="tools/lib"&gt;
  58. &lt;include name="*.jar"/&gt;
  59. &lt;/libfileset&gt;
  60. &lt;extensionSet id="exts"&gt;
  61. &lt;libfileset dir="lib"&gt;
  62. &lt;include name="*.jar"/&gt;
  63. &lt;/libfileset&gt;
  64. &lt;libfileset refid="lfs"/&gt;
  65. &lt;extension refid="e1"/&gt;
  66. &lt;/extensionSet&gt;
  67. </pre>
  68. </body>
  69. </html>