From 178a39c5d4d1dcf578e34e9f926a3918c9210ae7 Mon Sep 17 00:00:00 2001 From: Diane Holt Date: Thu, 28 Mar 2002 23:39:19 +0000 Subject: [PATCH] Add an initial example of straight / so it's clear how to do it that way, then chain the one off of that. (Suggested by Dominique Devienne.) git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272081 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/CoreTypes/fileset.html | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/docs/manual/CoreTypes/fileset.html b/docs/manual/CoreTypes/fileset.html index 72976c4ef..e6e60489d 100644 --- a/docs/manual/CoreTypes/fileset.html +++ b/docs/manual/CoreTypes/fileset.html @@ -72,6 +72,15 @@ attributes.

Examples

+<fileset dir="${server.src}" casesensitive="yes" >
+  <include name="**/*.java"/>
+  <exclude name="**/*Test*"/>
+</fileset>
+
+

Groups all files in directory ${server.src} that are Java +source files and don't have the text Test in their +name.

+
 <fileset dir="${server.src}" casesensitive="yes" >
   <patternset id="non.test.sources" >
     <include name="**/*.java"/>
@@ -79,16 +88,16 @@ attributes.

</patternset> </fileset>
-

Groups all files in directory ${server.src} that are Java -source files and don't have the text Test in their -name.

+

Groups the same files as the above example, but also establishes +a PatternSet that can be referenced in other +<fileset> elements, rooted at a different directory.

 <fileset dir="${client.src}" >
   <patternset refid="non.test.sources"/>
 </fileset>
 

Groups all files in directory ${client.src}, using the -same patterns as the example above.

+same patterns as the above example.


Copyright © 2001 Apache Software Foundation. All rights