tasks "filter" or "replace" enhanced ?
1 posts in topic
Flat View  Flat View

Posted By:   epo_jemba
Posted On:   Thursday, October 25, 2001 07:14 AM

I am looking for a way to perform tasks "filter" or "replace"
but with regular expression or wildcard for token. for example

@version 2.0 @
in the file will become
@version 3.0 @


I did not see any regexp behavior in filter or replace.
Like CVS does.

Any ideas

Re: tasks "filter" or "replace" enhanced ?

Posted By:   Erik_Hatcher  
Posted On:   Thursday, October 25, 2001 11:55 AM

Ant currently does not have regular expression replace capability, although there have been unsupported tasks to do such things posted to the ant-dev and ant-user e-mail lists (see the official Ant site for pointers to the e-mail list archives).

In the case you provided, you could still use the regular filter approach though by doing it like this:

version @version@
About | Sitemap | Contact