ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
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 <Robert.Priest@bentley.com> 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.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message