ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Waldhoff, Rodney" <>
Subject RE: other tokens
Date Thu, 18 Jan 2001 00:12:56 GMT
> I was wondering if there has been any discussion of  allowing tokens
> other than '@' for filtering.  

The <replace> task (one of the standard tasks) will do an "inline" (i.e.,
within the same file) search-and-replace for arbitrary strings.  You could
fake filtering-type behavior by doing a <copy> and then a <replace>.

The <rereplace> task I submitted a couple of weeks ago (check the archives)
will do the same thing as <replace>, except it will find an arbitrary
regular expression and replace it with another (possibly based upon the
"found" expression).

View raw message