doing a "grep" with ant
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Gio_Gio
Posted On:   Saturday, January 22, 2005 12:26 PM

HI !

I need to make a "grep" on a file to extract some lines which satisfy a regexp.
Then substitute a pattern in those lines with another string.
The output of all of this must be written to a new file.

I cannot find an ANT task that does the "grep" stuff.

Anybody can help me?

thanks!

Re: doing a "grep" with ant

Posted By:   Anonymous  
Posted On:   Sunday, January 23, 2005 05:42 PM

Have a look at using a FilterChain and FilterReader with the task. There is a replace-regex token filter you can find here
About | Sitemap | Contact