ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject cvs commit: ant/docs/manual/OptionalTasks replaceregexp.html
Date Wed, 19 Mar 2003 08:41:29 GMT
bodewig     2003/03/19 00:41:29

  Modified:    docs/manual/OptionalTasks Tag: ANT_15_BRANCH
  Add another example to replaceregexp's docs.
  PR: 17660
  Submitted by:	Jan Matèrne <jan at materne dot de>
  Revision  Changes    Path
  No                   revision
  No                   revision   +21 -1     ant/docs/manual/OptionalTasks/replaceregexp.html
  Index: replaceregexp.html
  RCS file: /home/cvs/ant/docs/manual/OptionalTasks/replaceregexp.html,v
  retrieving revision
  retrieving revision
  diff -u -r1.8.2.3 -r1.8.2.4
  --- replaceregexp.html	4 Sep 2002 11:21:14 -0000
  +++ replaceregexp.html	19 Mar 2003 08:41:29 -0000
  @@ -123,8 +123,28 @@
    with &quot;NewProperty&quot; in a properties file, preserving the existing
   value, in all files ending in <code>.properties</code> in the current directory</p>
  +<pre>&lt;replaceregexp match="\s+" replace=" " flags="g" byline="true"&gt;
  +    &lt;fileset dir="${html.dir}" includes="**/*.html" /&gt;
  +<p>replaces all whitespaces (blanks, tabs, etc) by one blank remaining the
  +line separator. So with input
  +&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;/body&gt;&lt;/html&gt;
  +would converted to
  +&lt;html&gt; &lt;body&gt;
  + &lt;h1&gt; T E S T &lt;/h1&gt; &lt;/body&gt;&lt;/html&gt;
  -<p align="center">Copyright &copy; 2001-2002 Apache Software Foundation. All
  +<p align="center">Copyright &copy; 2001-2003 Apache Software Foundation. All

View raw message