Methods Summary |
---|
public void | addText(java.lang.String text)The script text.
helper.addText(text);
|
public org.apache.tools.ant.types.Path | createClasspath()Classpath to be used when searching for classes and resources.
return helper.createClasspath();
|
public java.io.File | getBasedir()get the base directory
return basedir;
|
public java.io.File | getFile()get the file that is currently to be tested
return file;
|
public java.lang.String | getFilename()get the filename of the file
return filename;
|
private void | init()Initialize on demand.
if (runner != null) {
return;
}
runner = helper.getScriptRunner();
|
public boolean | isSelected(java.io.File basedir, java.lang.String filename, java.io.File file)Method that each selector will implement to create their selection
behaviour. If there is a problem with the setup of a selector, it can
throw a BuildException to indicate the problem.
init();
setSelected(true);
this.file = file;
this.basedir = basedir;
this.filename = filename;
runner.addBean("basedir", basedir);
runner.addBean("filename", filename);
runner.addBean("file", file);
runner.executeScript("ant_selector");
return isSelected();
|
public boolean | isSelected()get state of selected flag
return selected;
|
public void | setClasspath(org.apache.tools.ant.types.Path classpath)Set the classpath to be used when searching for classes and resources.
helper.setClasspath(classpath);
|
public void | setClasspathRef(org.apache.tools.ant.types.Reference r)Set the classpath by reference.
helper.setClasspathRef(r);
|
public void | setLanguage(java.lang.String language)Defines the language (required).
helper.setLanguage(language);
|
public void | setManager(java.lang.String manager)Defines the manager.
helper.setManager(manager);
|
public void | setProject(org.apache.tools.ant.Project project)Set the project.
super.setProject(project);
helper.setProjectComponent(this);
|
public void | setSelected(boolean selected)set the selected state
Intended for script use, not as an Ant attribute
this.selected = selected;
|
public void | setSetBeans(boolean setBeans)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.
helper.setSetBeans(setBeans);
|
public void | setSrc(java.io.File file)Load the script from an external file ; optional.
helper.setSrc(file);
|