Browse Source

Fix error in the examples.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@603477 13f79535-47bb-0310-9956-ffa450edef68
master
Jan Materne 17 years ago
parent
commit
47de006e0b
1 changed files with 8 additions and 6 deletions
  1. +8
    -6
      docs/manual/OptionalTasks/replaceregexp.html

+ 8
- 6
docs/manual/OptionalTasks/replaceregexp.html View File

@@ -89,10 +89,12 @@ See details in the documentation of the <a href="../CoreTypes/regexp.html#implem
</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 @@ value, in the file <code>${src}/build.properties</code></p>
&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


Loading…
Cancel
Save