mirror of
https://github.com/apache/ant.git
synced 2025-05-19 06:24:47 +00:00
109 lines
3.4 KiB
HTML
109 lines
3.4 KiB
HTML
<!--
|
|
Licensed to the Apache Software Foundation (ASF) under one or more
|
|
contributor license agreements. See the NOTICE file distributed with
|
|
this work for additional information regarding copyright ownership.
|
|
The ASF licenses this file to You under the Apache License, Version 2.0
|
|
(the "License"); you may not use this file except in compliance with
|
|
the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Language" content="en-us">
|
|
<link rel="stylesheet" type="text/css" href="../stylesheets/style.css">
|
|
<title>Extension Type</title>
|
|
</head>
|
|
|
|
<body>
|
|
<h2 id="fileset">Extension</h2>
|
|
<p>Utility type that represents either an available "Optional Package" (formerly known as
|
|
"Standard Extension") as described in the manifest of a JAR file, or the requirement for such
|
|
an optional package.</p>
|
|
<p>Note that this type works with extensions as defined by the "Optional Package" specification.
|
|
For more information about optional packages, see the document <em>Optional Package
|
|
Versioning</em> in the documentation bundle for your Java Standard Edition package, in
|
|
file <samp>guide/extensions/versioning.html</samp> or the
|
|
online <a href="https://docs.oracle.com/javase/8/docs/technotes/guides/versioning/spec/versioning2.html#wp90779">Package
|
|
Versioning documentation.</a></p>
|
|
|
|
<h3>Attributes</h3>
|
|
<p>The extension type supports the following attributes:</p>
|
|
|
|
<table class="attr">
|
|
<tr>
|
|
<th>Attribute</th>
|
|
<th>Description</th>
|
|
<th>Required</th>
|
|
</tr>
|
|
<tr>
|
|
<td>extensionName</td>
|
|
<td>The name of extension</td>
|
|
<td>yes</td>
|
|
</tr>
|
|
<tr>
|
|
<td>specificationVersion</td>
|
|
<td>The version of extension specification (must be in dewey decimal aka dotted decimal
|
|
notation, eg <q>3.2.4</q>)</td>
|
|
<td>no</td>
|
|
</tr>
|
|
<tr>
|
|
<td>specificationVendor</td>
|
|
<td>The specification vendor</td>
|
|
<td>no</td>
|
|
</tr>
|
|
<tr>
|
|
<td>implementationVersion</td>
|
|
<td>The version of extension implementation (must be in dewey decimal aka dotted decimal
|
|
notation, eg <q>3.2.4</q>)</td>
|
|
<td>no</td>
|
|
</tr>
|
|
<tr>
|
|
<td>implementationVendor</td>
|
|
<td>The implementation vendor</td>
|
|
<td>no</td>
|
|
</tr>
|
|
<tr>
|
|
<td>implementationVendorId</td>
|
|
<td>The implementation vendor ID</td>
|
|
<td>no</td>
|
|
</tr>
|
|
<tr>
|
|
<td>implementationURL</td>
|
|
<td>The url from which to retrieve extension.</td>
|
|
<td>no</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h4>Examples</h4>
|
|
<pre>
|
|
<extension id="e1"
|
|
extensionName="MyExtensions"
|
|
specificationVersion="1.0"
|
|
specificationVendor="Peter Donald"
|
|
implementationVendorID="vv"
|
|
implementationVendor="Apache"
|
|
implementationVersion="2.0"
|
|
implementationURL="http://somewhere.com/myExt.jar"/>
|
|
</pre>
|
|
|
|
<p>Fully specified extension object.</p>
|
|
|
|
<pre>
|
|
<extension id="e1"
|
|
extensionName="MyExtensions"
|
|
specificationVersion="1.0"
|
|
specificationVendor="Peter Donald"/>
|
|
</pre>
|
|
|
|
<p>Extension object that just specifies the specification details.</p>
|
|
|
|
</body>
|
|
</html>
|