You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by jh...@apache.org on 2007/12/12 07:08:22 UTC
svn commit: r603477 -
/ant/core/trunk/docs/manual/OptionalTasks/replaceregexp.html
Author: jhm
Date: Tue Dec 11 22:08:22 2007
New Revision: 603477
URL: http://svn.apache.org/viewvc?rev=603477&view=rev
Log:
Fix error in the examples.
Modified:
ant/core/trunk/docs/manual/OptionalTasks/replaceregexp.html
Modified: ant/core/trunk/docs/manual/OptionalTasks/replaceregexp.html
URL: http://svn.apache.org/viewvc/ant/core/trunk/docs/manual/OptionalTasks/replaceregexp.html?rev=603477&r1=603476&r2=603477&view=diff
==============================================================================
--- ant/core/trunk/docs/manual/OptionalTasks/replaceregexp.html (original)
+++ ant/core/trunk/docs/manual/OptionalTasks/replaceregexp.html Tue Dec 11 22:08:22 2007
@@ -89,10 +89,12 @@
</tr>
</table>
<h3>Examples</h3>
-<pre> <replaceregexp file="${src}/build.properties"
- match="OldProperty=(.*)"
- replace="NewProperty=\1"
- byline="true"/>
+<pre>
+<replaceregexp file="${src}/build.properties"
+ match="OldProperty=(.*)"
+ replace="NewProperty=\1"
+ byline="true"
+/>
</pre>
<p>replaces occurrences of the property name "OldProperty"
with "NewProperty" in a properties file, preserving the existing
@@ -122,9 +124,9 @@
<regexp pattern="OldProperty=(.*)"/>
<substitution expression="NewProperty=\1"/>
<fileset dir=".">
- <includes="*.properties"/>
+ <include name="*.properties"/>
</fileset>
- </replaceregexp>
+</replaceregexp>
</pre></blockquote>
<p>replaces occurrences of the property name "OldProperty"
with "NewProperty" in a properties file, preserving the existing