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>  &lt;replaceregexp file=&quot;${src}/build.properties&quot;
-                         match=&quot;OldProperty=(.*)&quot;
-                         replace=&quot;NewProperty=\1&quot;
-                         byline=&quot;true&quot;/&gt;
+<pre>
+&lt;replaceregexp file=&quot;${src}/build.properties&quot;
+               match=&quot;OldProperty=(.*)&quot;
+               replace=&quot;NewProperty=\1&quot;
+               byline=&quot;true&quot;
+/&gt;
 </pre>
 <p>replaces occurrences of the property name &quot;OldProperty&quot;
  with &quot;NewProperty&quot; in a properties file, preserving the existing
@@ -122,9 +124,9 @@
   &lt;regexp pattern=&quot;OldProperty=(.*)&quot;/&gt;
   &lt;substitution expression=&quot;NewProperty=\1&quot;/&gt;
   &lt;fileset dir=&quot;.&quot;&gt;
-   &lt;includes=&quot;*.properties&quot;/&gt;
+    &lt;include name=&quot;*.properties&quot;/&gt;
   &lt;/fileset&gt;
- &lt;/replaceregexp&gt;
+&lt;/replaceregexp&gt;
 </pre></blockquote>
 <p>replaces occurrences of the property name &quot;OldProperty&quot;
  with &quot;NewProperty&quot; in a properties file, preserving the existing