ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastien Chassande-Barrioz <sebastien.chassa...@inrialpes.fr>
Subject Re: How to check if a propery is set
Date Mon, 15 Oct 2001 14:40:02 GMT
Diane Holt 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>
>
> 
> Property names for if/unless should be specified as just the name 
> no dollar-sign, no curly-braces.

Thank you, it is the solution.

Seb
-- 
Chassande-Barrioz Sebastien
INRIALPES - SIRAC/SARDES Team - ObjectWeb initiative
Mail job : sebastien.chassande@inrialpes.fr
Phone : 04.76.61.55.16


Mime
View raw message