bodewig 01/08/01 02:23:47
Modified: docs/manual/CoreTypes patternset.html
Log:
Clean up documentation for <patternset> to better explain the nested elements.
PR: 2158
Revision Changes Path
1.4 +61 -8 jakarta-ant/docs/manual/CoreTypes/patternset.html
Index: patternset.html
===================================================================
RCS file: /home/cvs/jakarta-ant/docs/manual/CoreTypes/patternset.html,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- patternset.html 2001/08/01 09:08:55 1.3
+++ patternset.html 2001/08/01 09:23:47 1.4
@@ -47,8 +47,66 @@
exclude file by using a nested excludesfile elements.</td>
</tr>
</table>
-
-<h4>Examples</h4>
+<h3>Parameters specified as nested elements</h3>
+<h4><code>include</code> and <code>exclude</code></h4>
+<p>Each such element defines a single pattern for files to include or
+exclude.</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">name</td>
+ <td valign="top">the <a href=="../dirtasks.html#patterns">pattern</a>
+ to in/exclude.</td>
+ <td align="center" valign="top">Yes</td>
+ </tr>
+ <tr>
+ <td valign="top">if</td>
+ <td valign="top">Only use this pattern if the named property is set.</td>
+ <td align="center" valign="top">No</td>
+ </tr>
+ <tr>
+ <td valign="top">unless</td>
+ <td valign="top">Only use this pattern if the named property is
+ <b>not</b> set.</td>
+ <td align="center" valign="top">No</td>
+ </tr>
+</table>
+<h4><code>includesfile</code> and <code>excludesfile</code></h4>
+<p>If you want to list the files to include or exclude external to
+your build file, you should use the includesfile/excludesfile
+attributes or elements. Using the attribute, you can only specify a
+single file of each type, while the nested elements can be specified
+more than once - the nested elements also support if/unless attributes
+you can use to test the existance of a property.</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">name</td>
+ <td valign="top">the name of the file holding the patterns to
+ in/exclude.</td>
+ <td align="center" valign="top">Yes</td>
+ </tr>
+ <tr>
+ <td valign="top">if</td>
+ <td valign="top">Only read this file if the named property is set.</td>
+ <td align="center" valign="top">No</td>
+ </tr>
+ <tr>
+ <td valign="top">unless</td>
+ <td valign="top">Only read this file if the named property is
+ <b>not</b> set.</td>
+ <td align="center" valign="top">No</td>
+ </tr>
+</table>
+<h3>Examples</h3>
<blockquote><pre>
<patternset id="non.test.sources" >
<include name="**/*.java"/>
@@ -78,12 +136,7 @@
</pre></blockquote>
<p>will only include the files in the sub-directory <em>prof</em> if the
property
<em>professional</em> is set to some value.</p>
-<p>If you want to list the files to include or exclude external to
-your build file, you should use the includesfile/excludesfile
-attributes or elements. Using the attribute, you can only specify a
-single file of each type, while the nested elements can be specified
-more than once - the nested elements also support if/unless attributes
-you can use to test the existance of a property. For example:</p>
+<p>The two sets</p>
<blockquote><pre>
<patternset includesfile="some-file" />
</pre></blockquote>