|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.ProjectComponent org.apache.tools.ant.Task org.apache.tools.ant.taskdefs.optional.script.ScriptDefBase
public class ScriptDefBase
The script execution class. This class finds the defining script task and passes control to that task's executeScript method.
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 | |
---|---|
ScriptDefBase()
|
Method Summary | |
---|---|
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 |
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 |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScriptDefBase()
Method Detail |
---|
public void execute()
execute
in class Task
public java.lang.Object createDynamicElement(java.lang.String name)
createDynamicElement
in interface DynamicElement
name
- the nested element name
public 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 BuildException
BuildException
- always.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |