org.apache.tools.ant.util
public class ScriptRunnerHelper extends Object
Method Summary | |
---|---|
void | addText(String text)
The script text.
|
Path | createClasspath()
Classpath to be used when searching for classes and resources.
|
String | getLanguage()
Get the language. |
ScriptRunnerBase | getScriptRunner()
Create and set text on a script. |
void | setClassLoader(ClassLoader loader)
Used when called by scriptdef. |
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 script manager - defaults to "auto".
|
void | setProjectComponent(ProjectComponent component)
Set the project component associated with this helper. |
void | setSetBeans(boolean setBeans)
Set the setbeans attribute.
|
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.
Returns: the scripting language.
Returns: the created or reused script runner.
Parameters: loader the loader used by scriptdef.
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 - "bsf" or "javax" or "auto"
Parameters: component the project component that owns this helper.
Parameters: setBeans the value to set.
Parameters: file the file containing the script source.