org.apache.tools.ant.util.optional

Class ScriptRunner

public class ScriptRunner extends ScriptRunnerBase

This class is used to run BSF scripts
Method Summary
ObjectevaluateScript(String execName)
Do the work.
voidexecuteScript(String execName)
Do the work.
StringgetManagerName()
Get the name of the manager prefix.
booleansupportsLanguage()
Check if bsf supports the language.

Method Detail

evaluateScript

public Object evaluateScript(String execName)
Do the work.

Parameters: execName the name that will be passed to BSF for this script execution.

Returns: the result of the evalulation

Throws: BuildException if someting goes wrong exectuing the script.

executeScript

public void executeScript(String execName)
Do the work.

Parameters: execName the name that will be passed to BSF for this script execution.

Throws: BuildException if someting goes wrong exectuing the script.

getManagerName

public String getManagerName()
Get the name of the manager prefix.

Returns: "bsf"

supportsLanguage

public boolean supportsLanguage()
Check if bsf supports the language.

Returns: true if bsf can create an engine for this language.