ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastien Chassande-Barrioz <>
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 variable is not 
>>set to the "true" value, but it's set to my test identifier.
>><target name="test1" if="${}">
>><target name="test2" unless="${}">
> Property names for if/unless should be specified as just the name 
> no dollar-sign, no curly-braces.

Thank you, it is the solution.

Chassande-Barrioz Sebastien
INRIALPES - SIRAC/SARDES Team - ObjectWeb initiative
Mail job :
Phone :

View raw message