ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r1478660 - /ant/core/trunk/manual/Types/filterchain.html
Date Fri, 03 May 2013 07:03:44 GMT
Author: jhm
Date: Fri May  3 07:03:43 2013
New Revision: 1478660

URL: http://svn.apache.org/r1478660
Log:
Bug-53538: Manual requires clarification about the use of property/propertynames

Modified:
    ant/core/trunk/manual/Types/filterchain.html

Modified: ant/core/trunk/manual/Types/filterchain.html
URL: http://svn.apache.org/viewvc/ant/core/trunk/manual/Types/filterchain.html?rev=1478660&r1=1478659&r2=1478660&view=diff
==============================================================================
--- ant/core/trunk/manual/Types/filterchain.html (original)
+++ ant/core/trunk/manual/Types/filterchain.html Fri May  3 07:03:43 2013
@@ -585,9 +585,14 @@ user defined values.
 <h4>Example:</h4>
 
 This replaces occurrences of the string &#64;DATE&#64; 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}.
 <blockquote><pre>
 &lt;tstamp/&gt;
+&lt;!-- just for explaining the use of the properties --&gt;
+&lt;property name=&quot;src.file&quot; value=&quot;orders.csv&quot;/&gt;
+&lt;property name=&quot;src.file.replaced&quot; value=&quot;orders.replaced&quot;/&gt;
+
+&lt;!-- do the loading and filtering --&gt;
 &lt;loadfile srcfile=&quot;${src.file}&quot; property=&quot;${src.file.replaced}&quot;&gt;
   &lt;filterchain&gt;
     &lt;filterreader classname=&quot;org.apache.tools.ant.filters.ReplaceTokens&quot;&gt;
@@ -595,6 +600,9 @@ with today's date and stores it in the p
     &lt;/filterreader&gt;
   &lt;/filterchain&gt;
 &lt;/loadfile&gt;
+
+&lt;!-- just for explaining the use of the properties --&gt;
+&lt;echo message=&quot;${orders.replaced}&quot;/>
 </pre></blockquote>
 
 Convenience method:



Mime
View raw message