ProjectComponent
that has script support built in
Use it as a foundation for scriptable things.
Modifier and Type | Field and Description |
---|---|
private ScriptRunnerHelper | helper
script runner helper |
private ScriptRunnerBase | runner
script runner. |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public void | |
public Path | Returns: an empty Path instance to be configured by Ant.Classpath to be used when searching for classes and resources. |
protected void | |
public ScriptRunnerBase | |
protected 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 | 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 | |
public void | |
public void | setProject(Project
the owner of this component. project)
Set the project.
|
public void | |
public void |
helper | back to summary |
---|---|
private ScriptRunnerHelper helper script runner helper |
runner | back to summary |
---|---|
private ScriptRunnerBase runner script runner. |
AbstractScriptComponent | back to summary |
---|---|
public AbstractScriptComponent() |
addText | back to summary |
---|---|
public void addText(String text) The script text.
|
createClasspath | back to summary |
---|---|
public Path createClasspath() Classpath to be used when searching for classes and resources.
|
executeScript | back to summary |
---|---|
protected void executeScript(String execName) Run a script
|
getRunner | back to summary |
---|---|
public ScriptRunnerBase getRunner() Get our script runner
|
initScriptRunner | back to summary |
---|---|
protected void initScriptRunner() Initialize the script runner. Calls this before running the system |
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.
|
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 manager.
|
setManager | back to summary |
---|---|
public void setManager(ScriptManager manager) Set the script manager. |
setProject | back to summary |
---|---|
public void setProject(Project project) Overrides org. Set the project. |
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.
|