ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: Remove a specific line from a file.
Date Wed, 12 Nov 2003 07:22:07 GMT
On Tue, 11 Nov 2003, Robert Priest <> wrote:

> Can anyone tell me how to remove a specific line from a text file
> using ant.

<replaceregexp> would probably work - simply replace the line your
don't want to see with nothing.

Ant 1.6beta with a <linecontainsregexp> filterreader in <copy> would
work as well - you'd jave to craft a regexp that matched all your
lines except for the one you don't want to see in your file.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message