Java Mailing List Archive

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

Apache Ant Archive

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

AW: Error in replaceregexp example

2005-06-24       - By Jan.Materne@(protected)

You?re right - thanks.

I?ll change that on the weekend.


Jan


ant/docs/manual/OptionalTasks/replaceregexp.html

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

>-----Urspr?ngliche Nachricht-----
>Von: Michael.Giroux@(protected) [mailto:Michael.Giroux@(protected)]
>Gesendet: Donnerstag, 23. Juni 2005 21:39
>An: user@(protected)
>Betreff: Error in replaceregexp example
>
>
>
>
>
>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)
>
>

---------------------------------------------------------------------
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.