ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conor MacNeill" <co...@cortexebusiness.com.au>
Subject RE: How to use $ in a ANT property value (Who knows what ANT SHOULD do)
Date Mon, 07 Aug 2000 23:31:09 GMT
> -----Original Message-----
> From: Richard Landon [mailto:RLandon@youbet.com]
> Sent: Tuesday, 8 August 2000 6:59
> To: ant-user@jakarta.apache.org
> Subject: RE: How to use $ in a ANT property value (Who knows what ANT
> SHOULD do)
>
>
> Try this, (insert into build.xml)
>
> <property name="helperone.classes"
> value="Helper$$1.class:Helper$$2.class"/>
> <property name="helpertwo.classes"
> value="Helper$$$$1.class:Helper$$$$2.class"/>
>
> <target name="tryme">
> <echo message="BEGIN: Who knows what ANT will do?"/>
> <echo message="(1) ${helperone.classes}"/>
> <echo message="(2) ${helpertwo.classes}"/>
> <echo message="(3) Helper$$1.class"/>
> <echo message="(4) Helper$$1.class:Helper$$2.class"/>
> <echo message="(5) Helper$$$1.class:Helper$$$2.class"/>
> <echo message="(6) Helper$$$$1.class:Helper$$$$2.class"/>
> <echo message="END  : Who knows what ANT will do?"/>
> </target>
>
> RESULT: build tryme
>
> BEGIN: Who knows what ANT will do?
> (1) Helper1.class:Helper2.class
> (2) Helper$1.class:Helper$2.class
> (3) Helper$1.class
> (4) Helper$1.class:Helper$2.class
> (5) Helper$1.class:Helper$2.class
> (6) Helper$$1.class:Helper$$2.class
> END  : Who knows what ANT will do?
> Completed in 0 seconds
>

For me,

BEGIN: Who knows what ANT will do?
(1) Helper$1.class:Helper$2.class
(2) Helper$$1.class:Helper$$2.class
(3) Helper$1.class
(4) Helper$1.class:Helper$2.class
(5) Helper$1.class:Helper$2.class
(6) Helper$$1.class:Helper$$2.class
END  : Who knows what ANT will do?

This is what I expected.

Can you type ant -version and let us know what it says. There was a bug, pre
1.1, that I fixed which would exhibit the behaviour you see.

Conor


Mime
View raw message