org.apache.tools.ant.taskdefs.optional

Class Script

public class Script extends Task

Executes a script.

UNKNOWN: name="script"

Method Summary
voidaddText(String text)
Set the script text.
voidexecute()
Do the work.
voidsetLanguage(String language)
Defines the language (required).
voidsetSrc(String fileName)
Load the script from an external file ; optional.

Method Detail

addText

public void addText(String text)
Set the script text.

Parameters: text a component of the script text to be added.

execute

public void execute()
Do the work.

Throws: BuildException if something goes wrong with the build

setLanguage

public void setLanguage(String language)
Defines the language (required).

Parameters: language the scripting language name for the script.

setSrc

public void setSrc(String fileName)
Load the script from an external file ; optional.

Parameters: fileName the name of the file containing the script source.

Copyright B) 2000-2007 Apache Software Foundation. All Rights Reserved.