| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private ClasspathUtils. | |
| private String | |
| private String | |
| private ScriptManager | |
| private ProjectComponent | |
| private Union | |
| private ClassLoader | |
| private boolean | |
| private File | |
| private String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public Path | Returns: an empty Path instance to be configured by Ant.Classpath to be used when searching for classes and resources. |
| private synchronized ClassLoader | |
| private ClasspathUtils. | |
| public boolean | |
| public String | Returns: the encoding of the file containing the script source.Get the external file encoding. |
| public String | |
| private ScriptRunnerBase | |
| public ScriptRunnerBase | |
| public File | |
| public void | |
| public void | setClasspath(Path
an Ant Path object containing the search path. classpath)Set the classpath to be used when searching for classes and resources. |
| public void | setClasspathRef(Reference
a Reference to a Path instance to be used as the classpath
value. r)Set the classpath by reference. |
| public void | |
| public void | setEncoding(String
the encoding of the file containing the script source. encoding)Set the encoding of the script from an external file; optional. |
| public void | setLanguage(String
the scripting language name for the script. language)Defines the language (required). |
| public void | setManager(String
the scripting manager - "bsf" or "javax" or "auto" manager)
Deprecated
Defines the script manager - defaults to "auto".
|
| public void | |
| public void | setProjectComponent(ProjectComponent
the project component that owns this helper. component)Set the project component associated with this helper. |
| public void | |
| public void |
| compiled | back to summary |
|---|---|
| private boolean compiled | |
| cpDelegate | back to summary |
|---|---|
| private ClasspathUtils. | |
| encoding | back to summary |
|---|---|
| private String encoding | |
| language | back to summary |
|---|---|
| private String language | |
| manager | back to summary |
|---|---|
| private ScriptManager manager | |
| projectComponent | back to summary |
|---|---|
| private ProjectComponent projectComponent | |
| resources | back to summary |
|---|---|
| private Union resources | |
| scriptLoader | back to summary |
|---|---|
| private ClassLoader scriptLoader | |
| setBeans | back to summary |
|---|---|
| private boolean setBeans | |
| srcFile | back to summary |
|---|---|
| private File srcFile | |
| text | back to summary |
|---|---|
| private String text | |
| ScriptRunnerHelper | back to summary |
|---|---|
| public ScriptRunnerHelper() | |
| add | back to summary |
|---|---|
| public void add(ResourceCollection resource) Add any source resource.
| |
| addText | back to summary |
|---|---|
| public void addText(String text) Add script text.
| |
| createClasspath | back to summary |
|---|---|
| public Path createClasspath() Classpath to be used when searching for classes and resources.
| |
| generateClassLoader | back to summary |
|---|---|
| private synchronized ClassLoader generateClassLoader() | |
| getClassPathDelegate | back to summary |
|---|---|
| private ClasspathUtils. | |
| getCompiled | back to summary |
|---|---|
| public boolean getCompiled() Get the compilation feature.
| |
| getEncoding | back to summary |
|---|---|
| public String getEncoding() Get the external file encoding.
| |
| getLanguage | back to summary |
|---|---|
| public String getLanguage() Get the language.
| |
| getRunner | back to summary |
|---|---|
| private ScriptRunnerBase getRunner() Get a script runner. | |
| getScriptRunner | back to summary |
|---|---|
| public ScriptRunnerBase getScriptRunner() Create and set text on a script.
| |
| getSrc | back to summary |
|---|---|
| public File getSrc() Get the external script file; optional.
| |
| setClassLoader | back to summary |
|---|---|
| public void setClassLoader(ClassLoader loader) Used when called by scriptdef.
| |
| setClasspath | back to summary |
|---|---|
| public void setClasspath(Path classpath) Set the classpath to be used when searching for classes and resources.
| |
| setClasspathRef | back to summary |
|---|---|
| public void setClasspathRef(Reference r) Set the classpath by reference.
| |
| setCompiled | back to summary |
|---|---|
| public void setCompiled(boolean compiled) Enable the compilation of the script if possible. If this is true and the compilation feature is available in the script engine, the script is compiled before the first evaluation, and should be cached for future evaluations. Otherwise, the script is evaluated each time. The default is false.
| |
| setEncoding | back to summary |
|---|---|
| public void setEncoding(String encoding) Set the encoding of the script from an external file; optional.
| |
| setLanguage | back to summary |
|---|---|
| public void setLanguage(String language) Defines the language (required).
| |
| setManager | back to summary |
|---|---|
| public void setManager(String manager)
Deprecated
Defines the script manager - defaults to "auto".
| |
| setManager | back to summary |
|---|---|
| public void setManager(ScriptManager manager) Set the manager. | |
| setProjectComponent | back to summary |
|---|---|
| public void setProjectComponent(ProjectComponent component) Set the project component associated with this helper.
| |
| setSetBeans | back to summary |
|---|---|
| public void setSetBeans(boolean setBeans) Set the setbeans attribute. If this is true, <script> will create variables in the script instance for all properties, targets and references of the current project. It this is false, only the project and self variables will be set. The default is true.
| |
| setSrc | back to summary |
|---|---|
| public void setSrc(File file) Load the script from an external file; optional.
| |