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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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>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
  25. works with extensions as defined by the "Optional Package" specification.
  26. For more information about optional packages, see the document
  27. <em>Optional Package Versioning</em> in the documentation bundle for your
  28. Java2 Standard Edition package, in file
  29. <code>guide/extensions/versioning.html</code> or online at
  30. <a href="http://docs.oracle.com/javase/7/docs/technotes/guides/versioning/spec/versioning2.html#wp90779">
  31. Package Versioning documentation.</p>
  32. <h3>Nested Elements</h3>
  33. <h4>extension</h4>
  34. <p><a href="extension.html">Extension</a> object to add to set.</p>
  35. <h4>fileset</h4>
  36. <p><a href="../Types/fileset.html">FileSet</a>s all files contained
  37. contained within set that are jars and implement an extension are added
  38. to extension set.</p>
  39. <h4>LibFileSet</h4>
  40. <p>All files contained contained within set that are jars and implement
  41. an extension are added to extension set. However the extension information
  42. may be modified by attributes of libfileset</p>
  43. <h4>Examples</h4>
  44. <blockquote><pre>
  45. &lt;extension id=&quot;e1&quot;
  46. extensionName=&quot;MyExtensions&quot;
  47. specificationVersion=&quot;1.0&quot;
  48. specificationVendor=&quot;Peter Donald&quot;
  49. implementationVendorID=&quot;vv&quot;
  50. implementationVendor=&quot;Apache&quot;
  51. implementationVersion=&quot;2.0&quot;
  52. implementationURL=&quot;http://somewhere.com/myExt.jar&quot;/&gt;
  53. &lt;libfileset id="lfs"
  54. includeUrl="true"
  55. includeImpl="false"
  56. dir="tools/lib"&gt;
  57. &lt;include name="*.jar"/&gt;
  58. &lt;/libfileset&gt;
  59. &lt;extensionSet id="exts"&gt;
  60. &lt;libfileset dir="lib"&gt;
  61. &lt;include name="*.jar"/&gt;
  62. &lt;/libfileset&gt;
  63. &lt;libfileset refid="lfs"/&gt;
  64. &lt;extension refid="e1"/&gt;
  65. &lt;/extensionSet&gt;
  66. </pre></blockquote>
  67. </body>
  68. </html>