org.apache.tools.ant.taskdefs.optional
public class Script extends Task
UNKNOWN: name="script"
Method Summary | |
---|---|
void | addText(String text)
Set the script text.
|
Path | createClasspath()
Classpath to be used when searching for classes and resources.
|
void | execute()
Run the script using the helper object.
|
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(String language)
Defines the language (required).
|
void | setManager(String manager)
Defines the manager.
|
void | setProject(Project project)
Set the project. |
void | setSetBeans(boolean setBeans)
Set the setbeans attribute.
|
void | setSrc(String fileName)
Load the script from an external file ; optional.
|
Parameters: text a component of the script text to be added.
Returns: an empty Path instance to be configured by Ant.
Throws: BuildException if something goes wrong with the build
Parameters: classpath an Ant Path object containing the search path.
Parameters: r a Reference to a Path instance to be used as the classpath value.
Parameters: language the scripting language name for the script.
Parameters: manager the scripting manager.
Parameters: project the project that this task belongs to.
Parameters: setBeans the value to set.
Parameters: fileName the name of the file containing the script source.