ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: filter loops in 1.6.2
Date Thu, 13 Jan 2005 16:37:10 GMT
--- Chris Shabsin <crs@MIT.EDU> wrote:

> In versions of Ant prior to 1.6.2 it was possible to
> use filters to 
> modify a token found in a file.  For example:
> 
> <filterset begintoken="/" endtoken="/">
>   <filter token="etc" value="/local/etc/"/>
> </filterset>
> 
> In 1.6.2, the fixed bugs list includes the entry:
> 
>     * replacestring tokenfilter only replaced the
> first occurrence.

This change relates not to filtersets, but to the
tokenfilter filter reader.
> 
> And, lo and behold, attempting to run this filter in
> 1.6.2 now gives:
> 
> [copy] Infinite loop in tokens. Currently known
> tokens : [etc]

According to CVS, this behavior should be evident in
Ant >= 1.5.1 .

> 
> Would it be possible to make the filtering continue
> after the last 
> replacement, rather than start over at the beginning
> of the line, to 
> make such a replacement possible again?  It seems

It may be that what you are looking for is an option
to turn off recursive token expansion in filtersets. 
Does this sound correct?

-Matt


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Mime
View raw message