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 How to check if a propery is set
Date Mon, 15 Oct 2001 12:43:21 GMT
hi,

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 ?

Thanks,
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