org.apache.tools.ant .Task org.apache.tools.ant.taskdefs.optional .Script Script public class Script extends Task (Code) Executes a script.
addText public void addText(String text)(Code) Set the script text.
Parameters: text - a component of the script text to be added.
createClasspath public Path createClasspath()(Code) Classpath to be used when searching for classes and resources.
an empty Path instance to be configured by Ant.
setClasspath public void setClasspath(Path classpath)(Code) Set the classpath to be used when searching for classes and resources.
Parameters: classpath - an Ant Path object containing the search path.
setClasspathRef public void setClasspathRef(Reference r)(Code) Set the classpath by reference.
Parameters: r - a Reference to a Path instance to be used as the classpathvalue.
setLanguage public void setLanguage(String language)(Code) Defines the language (required).
Parameters: language - the scripting language name for the script.
setManager public void setManager(String manager)(Code) Defines the manager.
Parameters: manager - the scripting manager.
setProject public void setProject(Project project)(Code) Set the project.
Parameters: project - the project that this task belongs to.
setSetBeans public void setSetBeans(boolean setBeans)(Code) 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.
Parameters: setBeans - the value to set.
setSrc public void setSrc(String fileName)(Code) Load the script from an external file ; optional.
Parameters: fileName - the name of the file containing the script source.