java.lang.Cloneable
, DynamicAttribute
, DynamicConfigurator
, DynamicElement
public class ScriptDefBase extends Task implements DynamicConfigurator
description, location, project
Constructor | Description |
---|---|
ScriptDefBase() |
Modifier and Type | Method | Description |
---|---|---|
void |
addText(java.lang.String text) |
Set the script text.
|
java.lang.Object |
createDynamicElement(java.lang.String name) |
Create a nested element
|
void |
execute() |
Locate the script defining task and execute the script by passing
control to it
|
void |
fail(java.lang.String message) |
Utility method for nested scripts; throws a BuildException
with the given message.
|
java.lang.String |
getText() |
get the text of this element; may be null
|
void |
setDynamicAttribute(java.lang.String name,
java.lang.String value) |
Set a task attribute
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
public void execute()
public java.lang.Object createDynamicElement(java.lang.String name)
createDynamicElement
in interface DynamicElement
name
- the nested element namepublic void setDynamicAttribute(java.lang.String name, java.lang.String value)
setDynamicAttribute
in interface DynamicAttribute
name
- the attribute name.value
- the attribute's string valuepublic void addText(java.lang.String text)
text
- a component of the script text to be added.public java.lang.String getText()
public void fail(java.lang.String message)
message
- text to pass to the BuildExceptionBuildException
- always.