bodewig 2002/07/12 07:07:36
Modified: docs/manual/CoreTypes filterchain.html filterset.html
Log:
PR: 10728
Revision Changes Path
1.3 +1 -1 jakarta-ant/docs/manual/CoreTypes/filterchain.html
Index: filterchain.html
===================================================================
RCS file: /home/cvs/jakarta-ant/docs/manual/CoreTypes/filterchain.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- filterchain.html 1 Jun 2002 12:26:35 -0000 1.2
+++ filterchain.html 12 Jul 2002 14:07:36 -0000 1.3
@@ -379,7 +379,7 @@
<H4>Example:</H4>
-This replaces occurences of the string @DATE@ in the data
+This replaces occurences of the string @DATE@ in the data
with today's date and stores it in the property ${src.file.replaced}
<BLOCKQUOTE><PRE>
<tstamp/>
1.8 +7 -8 jakarta-ant/docs/manual/CoreTypes/filterset.html
Index: filterset.html
===================================================================
RCS file: /home/cvs/jakarta-ant/docs/manual/CoreTypes/filterset.html,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- filterset.html 12 Jun 2002 14:54:40 -0000 1.7
+++ filterset.html 12 Jul 2002 14:07:36 -0000 1.8
@@ -19,7 +19,6 @@
<code>endtoken</code> attributes to define what to match.</p>
<p>Filtersets are used for doing
replacements in tasks such as <code><copy></code>, etc.</p>
-<p>Nested filters are possible and a message will be given in case a value
in a filter chain is called for a second time and thus causing an infinite
loop. The originating token will be passed back when an infinite loop occurs.
<H2>Filterset</H2>
@@ -33,14 +32,14 @@
<TR>
<TD vAlign=top>begintoken</TD>
<TD vAlign=top>The string marking the beginning of a token (eg.,
- <code>@date@</code>).</TD>
+ <code>@DATE@</code>).</TD>
<TD vAlign=top>@</TD>
<TD vAlign=top align="center">No</TD>
</TR>
<TR>
<TD vAlign=top>endtoken</TD>
<TD vAlign=top>The string marking the end of a token (eg.,
- <code>@date@</code>).</TD>
+ <code>@DATE@</code>).</TD>
<TD vAlign=top>@</TD>
<TD vAlign=top align="center">No</TD>
</TR>
@@ -55,7 +54,7 @@
</TR>
<TR>
<TD vAlign=top>token</TD>
- <TD vAlign=top>The token to replace (eg., <code>@date@</code>)</TD>
+ <TD vAlign=top>The token to replace (eg.,
<code>@DATE@</code>)</TD>
<TD vAlign=top align="center">Yes</TD>
</TR>
<TR>
@@ -85,22 +84,22 @@
<p>You are copying the <code>version.txt</code> file to the <code>dist</code>
directory from the <code>build</code> directory
-but wish to replace the token <code>@date@</code> with today's date.</p>
+but wish to replace the token <code>@DATE@</code> with today's
date.</p>
<BLOCKQUOTE><PRE>
<copy file="${build.dir}/version.txt"
toFile="${dist.dir}/version.txt">
<filterset>
- <filter token="date" value="${TODAY}"/>
+ <filter token="DATE" value="${TODAY}"/>
</filterset>
</copy>
</PRE></BLOCKQUOTE>
<p>You are copying the <code>version.txt</code> file to the <code>dist</code>
directory from the build directory
-but wish to replace the token <code>%date*</code> with today's date.</p>
+but wish to replace the token <code>%DATE*</code> with today's date.</p>
<BLOCKQUOTE><PRE>
<copy file="${build.dir}/version.txt"
toFile="${dist.dir}/version.txt">
<filterset begintoken="%" endtoken="*">
- <filter token="date" value="${TODAY}"/>
+ <filter token="DATE" value="${TODAY}"/>
</filterset>
</copy>
</PRE></BLOCKQUOTE>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>