Package ise.antelope.tasks
Class Case
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
ise.antelope.tasks.Case
- Direct Known Subclasses:
DefaultCase
public class Case
extends org.apache.tools.ant.Task
implements org.apache.tools.ant.TaskContainer, Breakable
This TaskContainer is intended to be nested into the Switch task.
- Version:
- $Revision: 111 $
-
Field Summary
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Required for Breakable interface.void
addTask
(org.apache.tools.ant.Task task) Adds a feature to the Task attribute of the Case objectboolean
doBreak()
Required for Breakable interface.void
execute()
Execute all nested tasks, checking for Breakables.getValue()
void
setBreak
(boolean b) Required for Breakable interface.void
Set the value for this case.Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
-
Constructor Details
-
Case
public Case()
-
-
Method Details
-
setValue
Set the value for this case. This value is used by the Switch task to decide if this task should execute.- Parameters:
value
- the value.
-
getValue
- Returns:
- the value for this case.
-
setBreak
public void setBreak(boolean b) Required for Breakable interface. -
doBreak
public boolean doBreak()Required for Breakable interface. -
addBreak
Required for Breakable interface. -
addTask
public void addTask(org.apache.tools.ant.Task task) throws org.apache.tools.ant.BuildException Adds a feature to the Task attribute of the Case object- Specified by:
addTask
in interfaceorg.apache.tools.ant.TaskContainer
- Parameters:
task
- The feature to be added to the Task attribute- Throws:
org.apache.tools.ant.BuildException
- Description of Exception
-
execute
public void execute() throws org.apache.tools.ant.BuildExceptionExecute all nested tasks, checking for Breakables.- Overrides:
execute
in classorg.apache.tools.ant.Task
- Throws:
org.apache.tools.ant.BuildException
- Description of Exception
-