Browse Source

Document the <classfileset> optional data type

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272213 13f79535-47bb-0310-9956-ffa450edef68
master
Conor MacNeill 23 years ago
parent
commit
e7f19f65db
3 changed files with 97 additions and 3 deletions
  1. +87
    -0
      docs/manual/OptionalTypes/classfileset.html
  2. +6
    -1
      docs/manual/conceptstypeslist.html
  3. +4
    -2
      docs/manual/install.html

+ 87
- 0
docs/manual/OptionalTypes/classfileset.html View File

@@ -0,0 +1,87 @@
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<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
&quot;root&quot; 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
&quot;id&quot; 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 &lt;root&gt; 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>Examples</h4>
<blockquote><pre>
&lt;classfileset id=&quot;reqdClasses" dir=&quot;${classes.dir}&quot;&gt;
&lt;root classname=&quot;org.apache.tools.ant.Project&quot; /&gt;
&lt;/classfileset&gt;
</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>
&lt;jar destfile=&quot;minimal.jar&quot; &gt;
&lt;fileset refid=&quot;reqdClasses&quot;/&gt;
&lt;/jar&gt;
</pre></blockquote>

<hr>
<p align="center">Copyright &copy; 2001 Apache Software Foundation. All rights
Reserved.</p>

</body>
</html>


+ 6
- 1
docs/manual/conceptstypeslist.html View File

@@ -10,9 +10,11 @@

<h2><a href="toc.html" target="navFrame">Table of Contents</a></h2>

<h3>Concepts and Types</h3>
<h3>Concepts</h3>
<a href="sysclasspath.html">build.sysclasspath</a><br>
<a href="CoreTasks/common.html">Common Attributes</a><br>

<h3>Core Types</h3>
<a href="CoreTypes/description.html">Description Type</a><br>
<a href="dirtasks.html">Directory-based Tasks</a><br>
<a href="CoreTypes/dirset.html">DirSet</a><br>
@@ -23,5 +25,8 @@
<a href="CoreTypes/filterset.html">FilterSet</a><br>
<a href="CoreTypes/patternset.html">PatternSet</a><br>
<a href="CoreTypes/xmlcatalog.html">XMLCatalog</a><br>

<h3>Optional Types</h3>
<a href="OptionalTypes/classfileset.html">Class Fileset</a><br>
</body>
</html>

+ 4
- 2
docs/manual/install.html View File

@@ -342,8 +342,10 @@ Installing Ant / Optional Tasks</a> section above.</p>
</tr>
<tr>
<td>bcel.jar</td>
<td>classfileset data type and JavaClassHelper used by the ClassConstants
filter reader<!-- and optional depend task -->.</td>
<td>classfileset data type,
JavaClassHelper used by the ClassConstants filter reader and
optionally used by ejbjar for dependency determination
</td>
<td><a href="http://jakarta.apache.org/bcel/" target="_top">jakarta.apache.org/bcel/</a></td>
</tr>
<tr>


Loading…
Cancel
Save