ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: Ant replaceregexp match="$" replace="\n\$" erroneous behaviour ?
Date Wed, 24 Mar 2004 18:48:44 GMT
--- denisboutin@free.fr wrote:
>  <replaceregexp
> file="installTurlututuEarWASReadable.jacl"
> match="\$"
> replace="\n\$" flags="g"/>
> 
> However, I've got the following exception :
> BUILD FAILED
> java.lang.StringIndexOutOfBoundsException: String
> index out of range: 2

Looks like a bug in Ant regarding the oobe... however,
the proper way to escape a '$' is to double it.  '\$'
is incorrect.  I would imagine the Exception comes
from Ant trying to resolve a property starting with
the index following the single '$'... or something
like that.

-Matt

__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

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


Mime
View raw message