* Do the work.
*
* @exception BuildException if something goes wrong with the build
*/
public void execute() throws BuildException {
ScriptRunner runner = new ScriptRunner();
if (language != null) {
runner.setLanguage(language);
}
if (src != null) {
runner.setSrc(src);
}
if (text != null) {
runner.addText(text);
}
runner.addBeans(getProject().getProperties());
runner.addBeans(getProject().getUserProperties());
runner.addBeans(getProject().getTargets());
runner.addBeans(getProject().getReferences());
runner.addBean("project", getProject());
runner.addBean("self", this);
runner.executeScript("ANT");
}