ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
Subject Re: How to check if a propery is set
Date Mon, 15 Oct 2001 13:21:59 GMT
--- Sebastien Chassande-Barrioz <sebastien.chassande@inrialpes.fr> wrote:
> I would like to run tasks only if a certain variable is set or not.
> The following example doesn't work because the test.id variable is not 
> set to the "true" value, but it's set to my test identifier.
> 
> <target name="test1" if="${test.id}">
> ....
> </target>
> <target name="test2" unless="${test.id}">
> ....
> </target>
> 
> Do you have a suggestion to resolve my problem ?

Property names for if/unless should be specified as just the name -- no
dollar-sign, no curly-braces.

=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com

Mime
View raw message