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.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| alternative | back to summary |
|---|---|
| private Object alternative | |
| property | back to summary |
|---|---|
| private String property | |
| value | back to summary |
|---|---|
| private Object value | |
| ConditionTask | back to summary |
|---|---|
| public ConditionTask() Constructor, names this task "condition". | |
| execute | back to summary |
|---|---|
| public void execute() throws BuildException See whether our nested condition holds and set the property.
| |
| setElse | back to summary |
|---|---|
| public void setElse(Object alt) The value for the property to set, if condition evaluates to false. If this attribute is not specified, the property will not be set.
| |
| setElse | back to summary |
|---|---|
| public void setElse(String e) The value for the property to set, if condition evaluates to false. If this attribute is not specified, the property will not be set.
| |
| setProperty | back to summary |
|---|---|
| public void setProperty(String p) The name of the property to set. Required.
| |
| setValue | back to summary |
|---|---|
| public void setValue(Object value) The value for the property to set, if condition evaluates to true. Defaults to "true".
| |
| setValue | back to summary |
|---|---|
| public void setValue(String v) The value for the property to set, if condition evaluates to true. Defaults to "true".
| |