org.apache.tools.ant.util.optional
Class ScriptRunner
public class ScriptRunner
This class is used to run BSF scripts
addBean , addBeans , addText , bindToComponent , bindToComponentMinimum , checkLanguage , clearScript , evaluateScript , executeScript , getBeans , getKeepEngine , getLanguage , getManagerName , getProject , getScript , getScriptClassLoader , replaceContextLoader , restoreContextLoader , setKeepEngine , setLanguage , setProject , setScriptClassLoader , setSrc , supportsLanguage |
evaluateScript
public Object evaluateScript(String execName)
throws BuildException
Do the work.
- evaluateScript in interface ScriptRunnerBase
execName
- the name that will be passed to BSF for this script
execution.
- the result of the evalulation
supportsLanguage
public boolean supportsLanguage()
Check if bsf supports the language.
- supportsLanguage in interface ScriptRunnerBase
- true if bsf can create an engine for this language.