org.apache.tools.ant.taskdefs.optional.script
Class ScriptDefBase
- Cloneable, DynamicAttribute, DynamicConfigurator, DynamicElement
public class ScriptDefBase
The script execution class. This class finds the defining script task
and passes control to that task's executeScript method.
void | addText(String text) - Set the script text.
|
Object | createDynamicElement(String name) - Create a nested element
|
void | execute() - Locate the script defining task and execute the script by passing
control to it
|
void | fail(String message) - Utility method for nested scripts; throws a BuildException
with the given message.
|
String | getText() - get the text of this element; may be null
|
void | setDynamicAttribute(String name, String value) - Set a task attribute
|
bindToOwner , execute , getOwningTarget , getRuntimeConfigurableWrapper , getTaskName , getTaskType , getWrapper , handleErrorFlush , handleErrorOutput , handleFlush , handleInput , handleOutput , init , isInvalid , log , log , log , log , maybeConfigure , perform , reconfigure , setOwningTarget , setRuntimeConfigurableWrapper , setTaskName , setTaskType |
addText
public void addText(String text)
Set the script text.
text
- a component of the script text to be added.
createDynamicElement
public Object createDynamicElement(String name)
Create a nested element
- createDynamicElement in interface DynamicElement
name
- the nested element name
- the element to be configured
execute
public void execute()
Locate the script defining task and execute the script by passing
control to it
- execute in interface Task
fail
public void fail(String message)
Utility method for nested scripts; throws a BuildException
with the given message.
message
- text to pass to the BuildException
getText
public String getText()
get the text of this element; may be null
- text or null for no nested text
setDynamicAttribute
public void setDynamicAttribute(String name,
String value)
Set a task attribute
- setDynamicAttribute in interface DynamicAttribute
name
- the attribute name.value
- the attribute's string value