org.apache.tools.ant.taskdefs
Class ConditionTask
public class ConditionTask
Task to set a property conditionally using <uptodate>, <available>,
and many other supported conditions.
This task supports boolean logic as well as pluggable conditions
to decide, whether a property should be set.
This task does not extend Task to take advantage of
ConditionBase.
Version:
- Ant 1.4
void | execute()- See whether our nested condition holds and set the property.
|
void | setProperty(String p)- The name of the property to set.
|
void | setValue(String v)- The value for the property to set, if condition evaluates to true.
|
add, addAnd, addAvailable, addChecksum, addContains, addEquals, addFilesMatch, addHttp, addIsFalse, addIsReference, addIsSet, addIsTrue, addNot, addOr, addOs, addSocket, addUptodate, countConditions, getConditions |
execute
public void execute()
throws BuildException See whether our nested condition holds and set the property.
BuildException - if an error occurs
- Ant 1.4
setProperty
public void setProperty(String p)
The name of the property to set. Required.
p - the name of the property
- Ant 1.4
setValue
public void setValue(String v)
The value for the property to set, if condition evaluates to true.
Defaults to "true".
v - the value of the property
- Ant 1.4
Copyright B) 2000-2005 Apache Software Foundation. All Rights Reserved.