Class ScriptRunner
java.lang.Object
org.apache.tools.ant.util.ScriptRunnerBase
org.apache.tools.ant.util.optional.ScriptRunner
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionevaluateScript(String execName) Evaluate the script.voidexecuteScript(String execName) Do the work.Get the name of the manager prefix.booleanCheck if bsf supports the language.Methods inherited from class org.apache.tools.ant.util.ScriptRunnerBaseaddBean, addBeans, addText, bindToComponent, bindToComponentMinimum, checkLanguage, clearScript, getBeans, getCompiled, getKeepEngine, getLanguage, getProject, getScript, getScriptClassLoader, loadResource, loadResources, replaceContextLoader, restoreContextLoader, setCompiled, setEncoding, setKeepEngine, setLanguage, setProject, setScriptClassLoader, setSrc
- 
Constructor Details- 
ScriptRunnerpublic ScriptRunner()
 
- 
- 
Method Details- 
getManagerNameGet the name of the manager prefix.- Specified by:
- getManagerNamein class- ScriptRunnerBase
- Returns:
- "bsf"
 
- 
supportsLanguagepublic boolean supportsLanguage()Check if bsf supports the language.- Specified by:
- supportsLanguagein class- ScriptRunnerBase
- Returns:
- true if bsf can create an engine for this language.
 
- 
executeScriptDo the work.- Specified by:
- executeScriptin class- ScriptRunnerBase
- Parameters:
- execName- the name that will be passed to BSF for this script execution.
- Throws:
- BuildException- if something goes wrong executing the script.
 
- 
evaluateScriptEvaluate the script.- Specified by:
- evaluateScriptin class- ScriptRunnerBase
- Parameters:
- execName- the name that will be passed to BSF for this script execution.
- Returns:
- the result of the evaluation
- Throws:
- BuildException- if something goes wrong executing the script.
 
 
-