holtdl 02/03/28 15:39:19
Modified: docs/manual/CoreTypes fileset.html
Log:
Add an initial example of straight <include>/<exclude> so it's
clear how to do it that way, then chain the <patternset> one
off of that. (Suggested by Dominique Devienne.)
Revision Changes Path
1.10 +13 -4 jakarta-ant/docs/manual/CoreTypes/fileset.html
Index: fileset.html
===================================================================
RCS file: /home/cvs/jakarta-ant/docs/manual/CoreTypes/fileset.html,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- fileset.html 3 Feb 2002 22:11:39 -0000 1.9
+++ fileset.html 28 Mar 2002 23:39:19 -0000 1.10
@@ -73,22 +73,31 @@
<h4>Examples</h4>
<blockquote><pre>
<fileset dir="${server.src}" casesensitive="yes" >
+ <include name="**/*.java"/>
+ <exclude name="**/*Test*"/>
+</fileset>
+</pre></blockquote>
+<p>Groups all files in directory <code>${server.src}</code> that are Java
+source files and don't have the text <code>Test</code> in their
+name.</p>
+<blockquote><pre>
+<fileset dir="${server.src}" casesensitive="yes" >
<patternset id="non.test.sources" >
<include name="**/*.java"/>
<exclude name="**/*Test*"/>
</patternset>
</fileset>
</pre></blockquote>
-<p>Groups all files in directory <code>${server.src}</code> that are Java
-source files and don't have the text <code>Test</code> in their
-name.</p>
+<p>Groups the same files as the above example, but also establishes
+a PatternSet that can be referenced in other
+<code><fileset></code> elements, rooted at a different directory.</p>
<blockquote><pre>
<fileset dir="${client.src}" >
<patternset refid="non.test.sources"/>
</fileset>
</pre></blockquote>
<p>Groups all files in directory <code>${client.src}</code>, using the
-same patterns as the example above.</p>
+same patterns as the above example.</p>
<hr>
<p align="center">Copyright © 2001 Apache Software Foundation. All
rights
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>