From 0dd749e0a91322e027fd13afb83df56f0b1e49b5 Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Fri, 12 Jul 2002 14:07:36 +0000 Subject: [PATCH] PR: 10728 git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273098 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/CoreTypes/filterchain.html | 2 +- docs/manual/CoreTypes/filterset.html | 15 +++++++-------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/docs/manual/CoreTypes/filterchain.html b/docs/manual/CoreTypes/filterchain.html index 15d46acdd..1ea8ffbc2 100644 --- a/docs/manual/CoreTypes/filterchain.html +++ b/docs/manual/CoreTypes/filterchain.html @@ -379,7 +379,7 @@ user defined values.

Example:

-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}
 <tstamp/>
diff --git a/docs/manual/CoreTypes/filterset.html b/docs/manual/CoreTypes/filterset.html
index a0a8b3cff..169d5f4a7 100644
--- a/docs/manual/CoreTypes/filterset.html
+++ b/docs/manual/CoreTypes/filterset.html
@@ -19,7 +19,6 @@ children of
 endtoken attributes to define what to match.

Filtersets are used for doing replacements in tasks such as <copy>, etc.

-

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.

Filterset

@@ -33,14 +32,14 @@ replacements in tasks such as <copy>, etc.

begintoken The string marking the beginning of a token (eg., - @date@). + @DATE@). @ No endtoken The string marking the end of a token (eg., - @date@). + @DATE@). @ No @@ -55,7 +54,7 @@ replacements in tasks such as <copy>, etc.

token - The token to replace (eg., @date@) + The token to replace (eg., @DATE@) Yes @@ -85,22 +84,22 @@ replacements in tasks such as <copy>, etc.

You are copying the version.txt file to the dist directory from the build directory -but wish to replace the token @date@ with today's date.

+but wish to replace the token @DATE@ with today's date.

 <copy file="${build.dir}/version.txt" toFile="${dist.dir}/version.txt">
   <filterset>
-    <filter token="date" value="${TODAY}"/>
+    <filter token="DATE" value="${TODAY}"/>
   </filterset>
 </copy>
 

You are copying the version.txt file to the dist directory from the build directory -but wish to replace the token %date* with today's date.

+but wish to replace the token %DATE* with today's date.

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