From 0dd749e0a91322e027fd13afb83df56f0b1e49b5 Mon Sep 17 00:00:00 2001
From: Stefan Bodewig 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.
<copy>, etc.
@date@).@DATE@).
@date@).@DATE@).
<copy>, etc.
@date@)@DATE@)<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.
@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.
%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>