org.apache.tools.ant.taskdefs
public class ConditionTask extends ConditionBase
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.
Since: Ant 1.4
UNKNOWN: category="control"
Constructor Summary | |
---|---|
ConditionTask()
Constructor, names this task "condition". |
Method Summary | |
---|---|
void | execute()
See whether our nested condition holds and set the property.
|
void | setElse(Object alt)
The value for the property to set, if condition evaluates to false.
|
void | setElse(String e)
The value for the property to set, if condition evaluates to false.
|
void | setProperty(String p)
The name of the property to set. |
void | setValue(Object value)
The value for the property to set, if condition evaluates to true.
|
void | setValue(String v)
The value for the property to set, if condition evaluates to true.
|
Throws: BuildException if an error occurs
Since: Ant 1.4
Parameters: alt the alternate value of the property.
Since: Ant 1.8
Parameters: e the alternate value of the property.
Since: Ant 1.6.3
Parameters: p the name of the property
Since: Ant 1.4
Parameters: value the (Object) value of the property
Since: Ant 1.8
Parameters: v the value of the property
Since: Ant 1.4