ise.antelope.tasks
public class IfTask extends org.apache.tools.ant.Task implements org.apache.tools.ant.TaskContainer, Breakable
Can hold other tasks including IfTask, in particular, an ElseTask and a Break.
Constructor and Description |
---|
IfTask() |
Modifier and Type | Method and Description |
---|---|
void |
addBool(BooleanConditionTask boolTask) |
void |
addBreak(Break b)
Required by Breakable.
|
void |
addElse(ElseTask elseTask) |
void |
addTask(org.apache.tools.ant.Task task)
Add a nested task to execute.
|
boolean |
doBreak()
Required by Breakable.
|
void |
execute()
Execute this task and all nested Tasks, checking for Breaks and
Breakables.
|
void |
init()
Automatically define dependent tasks.
|
void |
maybeConfigure()
Override
maybeConfigure
in a way that leaves the nested tasks unconfigured until they get
executed. |
void |
setBreak(boolean b)
Required by Breakable.
|
void |
setExists(java.lang.String exists)
Set the 'exists' attribute.
|
void |
setName(java.lang.String name)
Set the name of the property to test.
|
void |
setValue(java.lang.String value)
Set the expected value of the property.
|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, log, log, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
public void init()
init
in class org.apache.tools.ant.Task
public void setName(java.lang.String name)
name
- the name of the property to test.public void setValue(java.lang.String value)
execute
method throws BuildException if the actual value is not the same as this value.
Optional.value
- the expected value of the property.public void setExists(java.lang.String exists)
exists
- Ant boolean, whether the value must exist.public void setBreak(boolean b)
public void addBreak(Break b)
public void addElse(ElseTask elseTask)
public void addBool(BooleanConditionTask boolTask)
public boolean doBreak()
public void maybeConfigure() throws org.apache.tools.ant.BuildException
maybeConfigure
in a way that leaves the nested tasks unconfigured until they get
executed.maybeConfigure
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
- Description of the Exceptionpublic void addTask(org.apache.tools.ant.Task task)
addTask
in interface org.apache.tools.ant.TaskContainer
task
- Nested task to execute. public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
- Description of the Exception