![]()
|
ConditionDescriptionSets a property if a certain condition holds true - this is a generalization of Available and Uptodate. If the condition holds true, the property value is set to true by
default; otherwise, the property is not set. You can set the value to
something other than the default by specifying the Conditions are specified as nested elements, you must specify exactly one condition. Parameters
Parameters specified as nested elementsAll conditions to test are specified as nested elements, for a complete list see here. Examples<condition property="javamail.complete"> <and> <available classname="javax.activation.DataHandler"/> <available classname="javax.mail.Transport"/> </and> </condition> sets the property <condition property="isMacOsButNotMacOsX"> <and> <os family="mac"/> <not> <os family="unix"/> </not> </and> </condition> sets the property <condition property="isSunOSonSparc"> <os name="SunOS" arch="sparc"/> </condition> sets the property Copyright © 2001-2002 Apache Software Foundation. All rights Reserved. |