org.apache.tools.ant.types.optional
public abstract class AbstractScriptComponent extends ProjectComponent
| Method Summary | |
|---|---|
| void | addText(String text)
The script text.
|
| Path | createClasspath()
Classpath to be used when searching for classes and resources.
|
| protected Object | evaluateScript(String execName)
Evaluate a script. |
| protected void | executeScript(String execName)
Run a script |
| ScriptRunnerBase | getRunner()
Get our script runner |
| protected void | initScriptRunner()
Initialize the script runner. |
| void | setClasspath(Path classpath)
Set the classpath to be used when searching for classes and resources.
|
| void | setClasspathRef(Reference r)
Set the classpath by reference.
|
| void | setLanguage(String language)
Defines the language (required).
|
| void | setManager(String manager)
Defines the manager.
|
| void | setProject(Project project)
Set the project. |
| void | setSrc(File file)
Load the script from an external file ; optional.
|
Parameters: text a component of the script text to be added.
Returns: an empty Path instance to be configured by Ant.
Parameters: execName name of the script.
Returns: the result of the evaluation.
Parameters: execName name of the script
Returns: the runner
Parameters: classpath an Ant Path object containing the search path.
Parameters: r a Reference to a Path instance to be used as the classpath value.
Parameters: language the scripting language name for the script.
Parameters: manager the scripting manager.
Parameters: project the owner of this component.
Parameters: file the file containing the script source.