conor 01/08/17 04:39:15
Modified: docs/manual Tag: ANT_14_BRANCH coretasklist.html
docs/manual/CoreTasks Tag: ANT_14_BRANCH copy.html
Added: docs/manual/CoreTypes Tag: ANT_14_BRANCH filterset.html
Log:
Add filterset documentation
Submitted by: [EMAIL PROTECTED] (Michael McCallum)
Revision Changes Path
No revision
No revision
1.18.2.1 +1 -0 jakarta-ant/docs/manual/coretasklist.html
Index: coretasklist.html
===================================================================
RCS file: /home/cvs/jakarta-ant/docs/manual/coretasklist.html,v
retrieving revision 1.18
retrieving revision 1.18.2.1
diff -u -r1.18 -r1.18.2.1
--- coretasklist.html 2001/08/09 11:03:39 1.18
+++ coretasklist.html 2001/08/17 11:39:15 1.18.2.1
@@ -15,6 +15,7 @@
<a href="sysclasspath.html">build.sysclasspath</a><br>
<a href="CoreTypes/patternset.html">Patternset</a><br>
<a href="CoreTypes/fileset.html">Fileset</a><br>
+<a href="CoreTypes/filterset.html">Filterset</a><br>
<a href="CoreTypes/mapper.html">File Mappers</a><br>
<a href="CoreTasks/common.html">Common Attributes</a><br>
No revision
No revision
1.2.2.1 +31 -6 jakarta-ant/docs/manual/CoreTasks/copy.html
Index: copy.html
===================================================================
RCS file: /home/cvs/jakarta-ant/docs/manual/CoreTasks/copy.html,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -u -r1.2 -r1.2.2.1
--- copy.html 2001/02/13 12:31:50 1.2
+++ copy.html 2001/08/17 11:39:15 1.2.2.1
@@ -53,8 +53,9 @@
</tr>
<tr>
<td valign="top">filtering</td>
- <td valign="top">Indicates whether token filtering should take place
during
- the copy. Defaults to "no".</td>
+ <td valign="top">Indicates whether token filtering using the global
build file
+ filters should take place during the copy. Defaults to
"no".
+ Nested filtersets will be used even if this value is
"no"</td>
<td valign="top" align="center">No</td>
</tr>
<tr>
@@ -73,11 +74,22 @@
</tr>
</table>
<h3>Parameters specified as nested elements</h3>
+
+<h4>fileset</h4>
+ <p><a href="../CoreTypes/fileset.html">FileSets</a> are used to select
files to copy.
+ To use a fileset, the <var>todir</var> attribute must be set.</p>
+
<h4>mapper</h4>
-<p>You can define file name transformations by using a nested <a
-href="../CoreTypes/mapper.html">mapper</a> element. The default mapper used
by
-<code><copy></code> is the <a
-href="../CoreTypes/mapper.html#identity-mapper">identity</a>.</p>
+ <p>You can define file name transformations by using a nested <a
+ href="../CoreTypes/mapper.html">mapper</a> element. The default mapper used
by
+ <code><copy></code> is the <a
+ href="../CoreTypes/mapper.html#identity-mapper">identity</a>.</p>
+
+<h4>filterset</h4>
+ <p><a href="../CoreTypes/filterset.html">Filtersets</a> are used to replace
tokens in files that are copied.
+ To use a filterset just add the nested filterset elements.</P>
+
+
<h3>Examples</h3>
<p><b>Copy a single file</b></p>
<pre>
@@ -113,6 +125,19 @@
<mapper type="glob" from="*"
to="*.bak"/>
</copy>
</pre>
+
+
+<p><b>Copy a set of files to a replacing @TITLE@ with Foo Bar in all
files.</b></p>
+<pre>
+ <copy todir="../backup/dir" >
+ <fileset dir="src_dir" />
+ <filterset>
+ <filter token="TITLE" value="Foo Bar" />
+ </filterset>
+ </copy>
+</pre>
+
+
<hr><p align="center">Copyright © 2000,2001 Apache Software Foundation.
All rights
Reserved.</p>
No revision
No revision
1.1.2.1 +96 -0 jakarta-ant/docs/manual/CoreTypes/Attic/filterset.html