Java Mailing List Archive

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

Apache Ant Archive

» Ant Users List
» Ant Developers List
AW: Ant 1.5.4: How to do general text transformations on a file?

AW: Ant 1.5.4: How to do general text transformations on a file?

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

Just an idea

<replaceregexp byline="true">
 <regexp pattern="..(.*)"/>
 <substitution expression="\1"/>

 <fileset ...>

</replaceregexp>


Jan

>-----Urspr?ngliche Nachricht-----
>Von: Karr, David [mailto:david.karr@(protected)]
>Gesendet: Freitag, 24. Juni 2005 06:31
>An: Ant Users List
>Betreff: Ant 1.5.4: How to do general text transformations on a file?
>
>Due to a bug in the Weblogic wlwBuild task (it doesn't matter
>what the bug is), I'm trying to figure out how I can do a
>simple text transformation on every line of a text file.  In
>particular, I need to remove the first two characters from
>every line of a file.  It's simply a question of whether it's
>easier to develop a workaround or work with BEA to get a fix
>for the bug.  If doing this transformation is easy to do (I
>don't see how to do it), then I'll settle for this for now and
>work with BEA in the background.
>
>---------------------------------------------------------------------
>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.