ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: ant/docs/manual/OptionalTasks replaceregexp.html
Date Wed, 19 Mar 2003 08:42:14 GMT
bodewig     2003/03/19 00:42:14

  Modified:    docs/manual/OptionalTasks replaceregexp.html
  Log:
  Merge fix for bug 17660 from 1.5 branch
  
  Revision  Changes    Path
  1.14      +20 -0     ant/docs/manual/OptionalTasks/replaceregexp.html
  
  Index: replaceregexp.html
  ===================================================================
  RCS file: /home/cvs/ant/docs/manual/OptionalTasks/replaceregexp.html,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- replaceregexp.html	31 Jan 2003 12:15:51 -0000	1.13
  +++ replaceregexp.html	19 Mar 2003 08:42:14 -0000	1.14
  @@ -128,6 +128,26 @@
    with "NewProperty" in a properties file, preserving the existing
   value, in all files ending in <code>.properties</code> in the current directory</p>
   
  +<blockquote>
  +<pre>&lt;replaceregexp match="\s+" replace=" " flags="g" byline="true"&gt;
  +    &lt;fileset dir="${html.dir}" includes="**/*.html" /&gt;
  +&lt;/replaceregexp&gt;
  +</pre></blockquote>
  +<p>replaces all whitespaces (blanks, tabs, etc) by one blank remaining the
  +line separator. So with input
  +
  +<blockquote>
  +<pre>
  +&lt;html>    &lt;body&gt;
  +&lt;&lt;TAB&gt;&gt;&lt;h1&gt;    T E S T   &lt;/h1&gt;
 &lt;&lt;TAB&gt;&gt;    
  +&lt;&lt;TAB&gt;&gt; &lt;/body&gt;&lt;/html&gt;
  +</pre></blockquote>
  +would converted to
  +<pre>
  +&lt;html&gt; &lt;body&gt;
  + &lt;h1&gt; T E S T &lt;/h1&gt; &lt;/body&gt;&lt;/html&gt;
  +</pre>
  +
   <hr>
   <p align="center">Copyright &copy; 2001-2003 Apache Software Foundation. All
rights
   Reserved.</p>
  
  
  

Mime
View raw message