ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe Schmetzer" <...@exubero.com>
Subject Re: <property name="test" value="foo$$$bar"/>
Date Thu, 26 Feb 2009 14:47:45 GMT
Ant will unconditionally substitute a double "$$" with a single "$", as
this is the escape mechanism for avoiding property expansion. See
http://ant.apache.org/manual/using.html#properties for details.

Cheers,
Joe

On Thu, February 26, 2009 2:16 pm, Stefan Krause wrote:
> If I define a property containig more than one "$", ant strips some
> of them.
>
> <project name="test" default="make" basedir=".">
> 	<property name="test" value="foo$$$$$bar"/>
> 	<target name="make">
> 		<echo>${test}</echo>
> 	</target>
> </project>
>
> foo$bar -> foo$bar
> foo$$bar -> foo$bar
> foo$$$bar -> foo$$bar
> foo$$$$$bar -> foo$$bar
>
> Is there any trick to keep the original string?
>
> Thanks,
>
> Stefan



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


Mime
View raw message