ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gilbert Rebhan <...@schillbaer.de>
Subject Re: is a property defined?
Date Sun, 29 Jun 2008 11:23:43 GMT
Guy Catz schrieb:
> How can I tell if a property is defined?
> 
> I've tried <if> from contrib like this - if .. ${var} = "" ...
> That's fine for properties which was set to "", but not for properties who haven't set
at all.

use condition isset, see ant manual conditions,
f.e. =

<condition property="foobar.set">
   <isset property="foobar"/>
</condition>

Regards, Gilbert

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message