Class ScriptDefBase
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.optional.script.ScriptDefBase
- All Implemented Interfaces:
- Cloneable,- DynamicAttribute,- DynamicConfigurator,- DynamicElement
The script execution class. This class finds the defining script task
 and passes control to that task's executeScript method.
- Since:
- Ant 1.6
- 
Field SummaryFields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidSet the script text.createDynamicElement(String name) Create a nested elementvoidexecute()Locate the script defining task and execute the script by passing control to itvoidUtility method for nested scripts; throws a BuildException with the given message.getText()get the text of this element; may be nullvoidsetDynamicAttribute(String name, String value) Set a task attributeMethods inherited from class org.apache.tools.ant.TaskbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponentclone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
- 
Constructor Details- 
ScriptDefBasepublic ScriptDefBase()
 
- 
- 
Method Details- 
execute
- 
createDynamicElementCreate a nested element- Specified by:
- createDynamicElementin interface- DynamicElement
- Parameters:
- name- the nested element name
- Returns:
- the element to be configured
 
- 
setDynamicAttributeSet a task attribute- Specified by:
- setDynamicAttributein interface- DynamicAttribute
- Parameters:
- name- the attribute name.
- value- the attribute's string value
 
- 
addTextSet the script text.- Parameters:
- text- a component of the script text to be added.
- Since:
- ant1.7
 
- 
getTextget the text of this element; may be null- Returns:
- text or null for no nested text
- Since:
- ant1.7
 
- 
failUtility method for nested scripts; throws a BuildException with the given message.- Parameters:
- message- text to pass to the BuildException
- Throws:
- BuildException- always.
- Since:
- ant1.7
 
 
-