ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Kelem <s_ke...@pacbell.net>
Subject Constant property values?
Date Tue, 04 Nov 2003 00:54:19 GMT
The condition task has elements for:
not
and
or
available
uptodate
os
equals (string equality)
isset
checksum
http
socket
filematch
contains
isfalse
istrue.

But, there doesn't seem to be a way to write a constant value for TRUE 
or FALSE that can be used in the boolean operators above, or UNSET (or 
something equivalent) that can be used in a <property> element.

Constants are useful when you want to set a property to a given value or 
unset a property value, but leave the property element in the build.xml 
file so that it can be changed in the future in the file or on a command 
line.

The only way I could see to do the latter is:
   <condition property="include.midp">
         <istrue value="true"/>
    </condition>

Steve Kelem



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


Mime
View raw message