From edbb09d8623ed45a32d6499d5333e58ab946390c Mon Sep 17 00:00:00 2001 From: Jan Materne Date: Fri, 3 May 2013 07:03:43 +0000 Subject: [PATCH] Bug-53538: Manual requires clarification about the use of property/propertynames git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1478660 13f79535-47bb-0310-9956-ffa450edef68 --- manual/Types/filterchain.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/manual/Types/filterchain.html b/manual/Types/filterchain.html index 02f300e5c..3f62286d0 100644 --- a/manual/Types/filterchain.html +++ b/manual/Types/filterchain.html @@ -585,9 +585,14 @@ user defined values.

Example:

This replaces occurrences of the string @DATE@ in the data -with today's date and stores it in the property ${src.file.replaced} +with today's date and stores it in the property ${src.file.replaced}.
 <tstamp/>
+<!-- just for explaining the use of the properties -->
+<property name="src.file" value="orders.csv"/>
+<property name="src.file.replaced" value="orders.replaced"/>
+
+<!-- do the loading and filtering -->
 <loadfile srcfile="${src.file}" property="${src.file.replaced}">
   <filterchain>
     <filterreader classname="org.apache.tools.ant.filters.ReplaceTokens">
@@ -595,6 +600,9 @@ with today's date and stores it in the property ${src.file.replaced}
     </filterreader>
   </filterchain>
 </loadfile>
+
+<!-- just for explaining the use of the properties -->
+<echo message="${orders.replaced}"/>
 
Convenience method: