org.apache.tools.ant.util
public class ScriptRunner extends Object
Method Summary | |
---|---|
void | addBean(String key, Object bean)
Add a single object into the script context.
|
void | addBeans(Map dictionary)
Add a list of named objects to the list to be exported to the script
|
void | addText(String text)
Set the script text.
|
void | executeScript(String execName)
Do the work.
|
String | getLanguage()
Get the script language
|
void | setLanguage(String language)
Defines the language (required).
|
void | setSrc(File file)
Load the script from an external file ; optional.
|
Parameters: key the name in the context this object is to stored under. bean the object to be stored in the script context.
Parameters: dictionary a map of objects to be placed into the script context indexed by String names.
Parameters: text a component of the script text to be added.
Parameters: execName the name that will be passed to BSF for this script execution.
Throws: BuildException if someting goes wrong exectuing the script.
Returns: the script language
Parameters: language the scripting language name for the script.
Parameters: file the file containing the script source.