ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject RE: Constant property values?
Date Tue, 04 Nov 2003 08:41:33 GMT
> The condition task has elements for:
> not ...
> 
> 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.


You canĀ“t unset a property.

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


I prefer <property name="include.midp" value="true"/>.
Properties are immutable therefore this is a constant.


Jan

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message