public abstract class AbstractScriptComponent extends ProjectComponent
ProjectComponent that has script support built in
 Use it as a foundation for scriptable things.description, location, project| Constructor and Description | 
|---|
| AbstractScriptComponent() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addText(java.lang.String text)The script text. | 
| Path | createClasspath()Classpath to be used when searching for classes and resources. | 
| protected void | executeScript(java.lang.String execName)Run a script | 
| ScriptRunnerBase | getRunner()Get our script runner | 
| protected void | initScriptRunner()Initialize the script runner. | 
| void | setClasspath(Path classpath)Set the classpath to be used when searching for classes and resources. | 
| void | setClasspathRef(Reference r)Set the classpath by reference. | 
| void | setLanguage(java.lang.String language)Defines the language (required). | 
| void | setManager(java.lang.String manager)Defines the manager. | 
| void | setProject(Project project)Set the project. | 
| void | setSetBeans(boolean setBeans)Set the setbeans attribute. | 
| void | setSrc(java.io.File file)Load the script from an external file; optional. | 
clone, getDescription, getLocation, getProject, log, log, setDescription, setLocationpublic void setProject(Project project)
setProject in class ProjectComponentproject - the owner of this component.public ScriptRunnerBase getRunner()
public void setSrc(java.io.File file)
file - the file containing the script source.public void addText(java.lang.String text)
text - a component of the script text to be added.public void setManager(java.lang.String manager)
manager - the scripting manager.public void setLanguage(java.lang.String language)
language - the scripting language name for the script.protected void initScriptRunner()
public void setClasspath(Path classpath)
classpath - an Ant Path object containing the search path.public Path createClasspath()
public void setClasspathRef(Reference r)
r - a Reference to a Path instance to be used as the classpath
          value.protected void executeScript(java.lang.String execName)
execName - name of the scriptpublic void setSetBeans(boolean setBeans)
setBeans - the value to set.