From: Xuan B. <med...@us...> - 2008-01-25 19:21:24
|
Update of /cvsroot/tm4j/tm4j/lib/ant/apache-ant-1.7.0/docs/manual/OptionalTypes In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv12860/lib/ant/apache-ant-1.7.0/docs/manual/OptionalTypes Added Files: classfileset.html extension.html extensionset.html Log Message: Update 4 years old ant. --- NEW FILE: extension.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><a name="fileset">Extension</a></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 Java2 Standard Edition package, in file <code>guide/extensions/versioning.html</code> or online at <a href="http://java.sun.com/j2se/1.3/docs/guide/extensions/versioning.html"> http://java.sun.com/j2se/1.3/docs/guide/extensions/versioning.html</a>.</p> <h3>Attributes</h3> <p>The extension type supports the following attributes</a>: </p> <table border="1" cellpadding="2" cellspacing="0"> <tr> <td valign="top"><b>Attribute</b></td> <td valign="top"><b>Description</b></td> <td align="center" valign="top"><b>Required</b></td> </tr> <tr> <td valign="top">extensionName</td> <td valign="top">The name of extension</td> <td valign="top" align="center">yes</td> </tr> <tr> <td valign="top">specificationVersion</td> <td valign="top">The version of extension specification (Must be in dewey decimal aka dotted decimal notation. 3.2.4)</td> <td valign="top" align="center">no</td> </tr> <tr> <td valign="top">specificationVendor</td> <td valign="top">The specification vendor</td> <td valign="top" align="center">no</td> </tr> <tr> <td valign="top">implementationVersion</td> <td valign="top">The version of extension implementation (Must be in dewey decimal aka dotted decimal notation. 3.2.4)</td> <td valign="top" align="center">no</td> </tr> <tr> <td valign="top">implementationVendor</td> <td valign="top">The implementation vendor</td> <td valign="top" align="center">no</td> </tr> <tr> <td valign="top">implementationVendorId</td> <td valign="top">The implementation vendor ID</td> <td valign="top" align="center">no</td> </tr> <tr> <td valign="top">implementationURL</td> <td valign="top">The url from which to retrieve extension.</td> <td valign="top" align="center">no</td> </tr> </table> <h4>Examples</h4> <blockquote><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></blockquote> <p>Fully specific extension object.</p> <blockquote><pre> <extension id="e1" extensionName="MyExtensions" specificationVersion="1.0" specificationVendor="Peter Donald"/> </pre></blockquote> <p>Extension object that just species the specification details.</p> </body> </html> --- NEW FILE: classfileset.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>ClassFileSet Type</title> </head> <body> <h2><a name="fileset">ClassFileSet</a></h2> <p>A classfileset is a specialised type of fileset which, given a set of "root" classes, will include all of the class files upon which the root classes depend. This is typically used to create a jar with all of the required classes for a particular application. </p> <p> classfilesets are typically used by reference. They are declared with an "id" value and this is then used as a reference where a normal fileset is expected. </p> <p> This type requires the <code>jakarta-BCEL</code> library. </p> <h3>Attributes</h3> <p>The class fileset support the following attributes in addition to those supported by the <a href="../CoreTypes/fileset.html">standard fileset</a>: </p> <table border="1" cellpadding="2" cellspacing="0"> <tr> <td valign="top"><b>Attribute</b></td> <td valign="top"><b>Description</b></td> <td align="center" valign="top"><b>Required</b></td> </tr> <tr> <td valign="top">rootclass</td> <td valign="top">A single root class name</td> <td valign="top" align="center">No</td> </tr> </table> <h3>Nested Elements</h3> <h4>Root</h4> <p> When more than one root class is required, multiple nested <code><root></code> elements may be used </p> <table border="1" cellpadding="2" cellspacing="0"> <tr> <td valign="top"><b>Attribute</b></td> <td valign="top"><b>Description</b></td> <td align="center" valign="top"><b>Required</b></td> </tr> <tr> <td valign="top">classname</td> <td valign="top">The fully qualified name of the root class</td> <td align="center" valign="top">Yes</td> </tr> </table> <h4>RootFileSet</h4> <p> A root fileset is used to add a set of root classes from a fileset. In this case the entries in the fileset are expected to be Java class files. The name of the Java class is determined by the relative location of the classfile in the fileset. So, the file <code>org/apache/tools/ant/Project.class</code> corresponds to the Java class <code>org.apache.tools.ant.Project</code>.</p> <h4>Examples</h4> <blockquote><pre> <classfileset id="reqdClasses" dir="${classes.dir}"> <root classname="org.apache.tools.ant.Project"/> </classfileset> </pre></blockquote> <p>This example creates a fileset containing all the class files upon which the <code>org.apache.tools.ant.Project</code> class depends. This fileset could then be used to create a jar. </p> <blockquote><pre> <jar destfile="minimal.jar"> <fileset refid="reqdClasses"/> </jar> </pre></blockquote> <blockquote><pre> <classfileset id="reqdClasses" dir="${classes.dir}"> <rootfileset dir="${classes.dir}" includes="org/apache/tools/ant/Project*.class"/> </classfileset> </pre></blockquote> <p>This example constructs the classfileset using all the class with names starting with Project in the org.apache.tools.ant package</p> </body> </html> --- NEW FILE: extensionset.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>ExtensionSet Type</title> </head> <body> <h2><a>ExtensionSet</a></h2> <p>Utility type that represents a set of Extensions.</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 Java2 Standard Edition package, in file <code>guide/extensions/versioning.html</code> or online at <a href="http://java.sun.com/j2se/1.3/docs/guide/extensions/versioning.html"> http://java.sun.com/j2se/1.3/docs/guide/extensions/versioning.html</a>.</p> <h3>Nested Elements</h3> <h4>extension</h4> <p><a href="extension.html">Extension</a> object to add to set.</p> <h4>fileset</h4> <p><a href="../CoreTypes/fileset.html">FileSet</a>s all files contained contained within set that are jars and implement an extension are added to extension set.</p> <h4>LibFileSet</h4> <p>All files contained contained within set that are jars and implement an extension are added to extension set. However the extension information may be modified by attributes of libfileset</p> <h4>Examples</h4> <blockquote><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"/> <libfileset id="lfs" includeUrl="true" includeImpl="false" dir="tools/lib"> <include name="*.jar"/> </libfileset> <extensionSet id="exts"> <libfileset dir="lib"> <include name="*.jar"/> </libfileset> <libfileset refid="lfs"/> <extension refid="e1"/> </extensionSet> </pre></blockquote> </body> </html> |