Browse Source

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.)


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272081 13f79535-47bb-0310-9956-ffa450edef68
master
Diane Holt 23 years ago
parent
commit
178a39c5d4
1 changed files with 13 additions and 4 deletions
  1. +13
    -4
      docs/manual/CoreTypes/fileset.html

+ 13
- 4
docs/manual/CoreTypes/fileset.html View File

@@ -72,6 +72,15 @@ attributes.</p>

<h4>Examples</h4>
<blockquote><pre>
&lt;fileset dir=&quot;${server.src}&quot; casesensitive=&quot;yes&quot; &gt;
&lt;include name=&quot;**/*.java&quot;/&gt;
&lt;exclude name=&quot;**/*Test*&quot;/&gt;
&lt;/fileset&gt;
</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>
&lt;fileset dir=&quot;${server.src}&quot; casesensitive=&quot;yes&quot; &gt;
&lt;patternset id=&quot;non.test.sources&quot; &gt;
&lt;include name=&quot;**/*.java&quot;/&gt;
@@ -79,16 +88,16 @@ attributes.</p>
&lt;/patternset&gt;
&lt;/fileset&gt;
</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>&lt;fileset&gt;</code> elements, rooted at a different directory.</p>
<blockquote><pre>
&lt;fileset dir=&quot;${client.src}&quot; &gt;
&lt;patternset refid=&quot;non.test.sources&quot;/&gt;
&lt;/fileset&gt;
</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 &copy; 2001 Apache Software Foundation. All rights


Loading…
Cancel
Save