Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
Error in replaceregexp example

Error in replaceregexp example

2005-06-23       - By Michael.Giroux@(protected)
Reply:     1     2  





The help doc for replaceregexp shows and example of a fileset.  The nested
<includes...> element is incorrect.  This should be <include
name=*.properties/> element.  I'm thinking the author was intending the
includes attribute of the task itself perhaps.


<replaceregexp byline="true">
 <regexp pattern="OldProperty=(.*)"/>
 <substitution expression="NewProperty=\1"/>
 <fileset dir=".">
  <includes="*.properties"/>
 </fileset>
</replaceregexp>

Michael Giroux


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.