ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: FilterChain is there a regexp?
Date Fri, 10 Jan 2003 11:42:58 GMT
On Fri, 10 Jan 2003, Jose Alberto Fernandez
<> wrote:

> I am not sure I understood, do <linecontainsregexp> and
> <replaceregexp> already exists or are those just the names you are
> proposing for them?

They exist (<replaceregexp> is a(n optional) task, not a filter,
though) in 1.5.

   <copy file="${basedir}/CVS/Tag" tofile="curtag.txt"/>
   <replaceregexp file="curtag.txt" match=".\(.*\)" replace="\1"/>
   <loadfile property="curbranch" srcFile="curtag.txt">
   <delete file="curtag.txt"/>

is a way without sed, that is as silly as your original 8-)


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

View raw message