public class ScriptDefBase extends Task implements DynamicConfigurator
| Constructor and Description | 
|---|
| ScriptDefBase() | 
| Modifier and Type | Method and Description | 
|---|---|
| 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, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeclone, getDescription, getLocation, getProject, setDescription, setLocation, setProjectpublic void addText(String text)
text - a component of the script text to be added.public Object createDynamicElement(String name)
createDynamicElement in interface DynamicElementname - the nested element namepublic void execute()
public void fail(String message)
message - text to pass to the BuildExceptionBuildException - always.public String getText()
public void setDynamicAttribute(String name, String value)
setDynamicAttribute in interface DynamicAttributename - the attribute name.value - the attribute's string value