org.apache.tools.ant.util.optional

Class JavaxScriptRunner

public class JavaxScriptRunner extends ScriptRunnerBase

This class is used to run scripts using JSR 223.

Since: Ant 1.7.0

Method Summary
ObjectevaluateScript(String execName)
Do the work to eval the script.
voidexecuteScript(String execName)
Do the work to run the script.
StringgetManagerName()
Get the name of the manager prefix.
booleansupportsLanguage()
{@inheritDoc}.

Method Detail

evaluateScript

public Object evaluateScript(String execName)
Do the work to eval the script.

Parameters: execName the name that will be passed to the scripting engine 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 to run the script.

Parameters: execName the name that will be passed to the scripting engine 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: "javax"

supportsLanguage

public boolean supportsLanguage()
{@inheritDoc}.