org.apache.tools.ant.types.optional
public class ScriptSelector extends BaseSelector
Since: Ant1.7
Method Summary | |
---|---|
void | addText(String text)
The script text.
|
Path | createClasspath()
Classpath to be used when searching for classes and resources.
|
File | getBasedir()
get the base directory |
File | getFile()
get the file that is currently to be tested |
String | getFilename()
get the filename of the file |
boolean | isSelected(File basedir, String filename, File file)
Method that each selector will implement to create their selection
behaviour. |
boolean | isSelected()
get state of selected flag |
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 | setSelected(boolean selected)
set the selected state
Intended for script use, not as an Ant attribute |
void | setSetBeans(boolean setBeans)
Set the setbeans attribute.
|
void | setSrc(File file)
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.
Returns: the base directory
Returns: the file that is currently been tested
Returns: the filename of the file that is currently been tested
Parameters: basedir A java.io.File object for the base directory filename The name of the file to check file A File object for this filename
Returns: whether the file should be selected or not
Returns: the selected flag
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 owner of this component.
Parameters: selected the selected state
Parameters: setBeans the value to set.
Parameters: file the file containing the script source.