org.apache.tools.ant.types.optional
public class ScriptFilter extends TokenFilter.ChainableReaderFilter
Since: Ant 1.6
Method Summary | |
---|---|
void | addText(String text)
The script text.
|
Path | createClasspath()
Classpath to be used when searching for classes and resources.
|
String | filter(String token)
Called filter the token.
|
String | getToken()
The current token
|
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 | setSrc(File file)
Load the script from an external file ; optional.
|
void | setToken(String token)
The current token
|
Parameters: text a component of the script text to be added.
Returns: an empty Path instance to be configured by Ant.
Parameters: token the token to be filtered
Returns: the filtered token
Returns: the string filtered by the script
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: file the file containing the script source.
Parameters: token the string filtered by the script