Package org.apache.tools.ant.util
Class ScriptRunnerCreator
java.lang.Object
org.apache.tools.ant.util.ScriptRunnerCreator
This is a helper class used by ScriptRunnerHelper to
create a ScriptRunner based on a classloader and on a language.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateRunner
(String manager, String language, ClassLoader classLoader) Deprecated.createRunner
(ScriptManager manager, String language, ClassLoader classLoader) Create a ScriptRunner.
-
Constructor Details
-
ScriptRunnerCreator
Constructor for creator.- Parameters:
project
- the current project.
-
-
Method Details
-
createRunner
@Deprecated public ScriptRunnerBase createRunner(String manager, String language, ClassLoader classLoader) Deprecated.UsecreateRunner(ScriptManager,String,ClassLoader)
insteadCreate a ScriptRunner.- Parameters:
manager
- the script manager ("auto" | "bsf" | "javax")language
- the language.classLoader
- the classloader to use- Returns:
- the created script runner.
- Throws:
BuildException
- if unable to create the ScriptRunner.
-
createRunner
public ScriptRunnerBase createRunner(ScriptManager manager, String language, ClassLoader classLoader) Create a ScriptRunner.- Parameters:
manager
- theScriptManager
language
- the language.classLoader
- the classloader to use- Returns:
- the created script runner.
- Throws:
BuildException
- if unable to create the ScriptRunner.
-
createRunner(ScriptManager,String,ClassLoader)
instead