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-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to