Browse Source

example for relative directories

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@321170 13f79535-47bb-0310-9956-ffa450edef68
master
Jan Materne 19 years ago
parent
commit
b443192f7a
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      docs/manual/CoreTypes/fileset.html

+ 10
- 0
docs/manual/CoreTypes/fileset.html View File

@@ -100,6 +100,7 @@ platforms.</p>
<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;
@@ -111,6 +112,7 @@ 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;
@@ -118,6 +120,7 @@ a PatternSet that can be referenced in other
</pre></blockquote>
<p>Groups all files in directory <code>${client.src}</code>, using the
same patterns as the above example.</p>

<blockquote><pre>
&lt;fileset dir=&quot;${server.src}&quot; casesensitive=&quot;yes&quot;&gt;
&lt;filename name=&quot;**/*.java&quot;/&gt;
@@ -126,6 +129,7 @@ same patterns as the above example.</p>
</pre></blockquote>
<p>Groups the same files as the top example, but using the
<code>&lt;filename&gt;</code> selector.</p>

<blockquote><pre>
&lt;fileset dir=&quot;${server.src}&quot; casesensitive=&quot;yes&quot;&gt;
&lt;filename name=&quot;**/*.java&quot;/&gt;
@@ -138,6 +142,12 @@ same patterns as the above example.</p>
<code>&lt;filename&gt;</code> selector and the <code>&lt;not&gt;</code>
selector container.</p>

<blockquote><pre>
&lt;fileset dir="src" includes="main/" /&gt;
</pre></blockquote>
<p>Selects all files in <i>src/main</i> (e.g. <i>src/main/Foo.java</i> or
<i>src/main/application/Bar.java</i>).</p>

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


Loading…
Cancel
Save