|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.ProjectComponent org.apache.tools.ant.filters.TokenFilter.ChainableReaderFilter org.apache.tools.ant.types.optional.ScriptFilter
public class ScriptFilter
Most of this is CAP (Cut And Paste) from the Script task ScriptFilter class, implements TokenFilter.Filter for scripts to use. This provides the same beans as the Script Task to a script. The script is meant to use get self.token and set self.token in the reply.
Field Summary |
---|
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
description, location, project |
Constructor Summary | |
---|---|
ScriptFilter()
|
Method Summary | |
---|---|
void |
addText(java.lang.String text)
The script text. |
Path |
createClasspath()
Classpath to be used when searching for classes and resources. |
java.lang.String |
filter(java.lang.String token)
Called filter the token. |
java.lang.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(java.lang.String language)
Defines the language (required). |
void |
setManager(java.lang.String manager)
Defines the manager. |
void |
setProject(Project project)
Set the project. |
void |
setSrc(java.io.File file)
Load the script from an external file ; optional. |
void |
setToken(java.lang.String token)
The current token |
Methods inherited from class org.apache.tools.ant.filters.TokenFilter.ChainableReaderFilter |
---|
chain, setByLine |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScriptFilter()
Method Detail |
---|
public void setProject(Project project)
setProject
in class ProjectComponent
project
- the owner of this component.public void setLanguage(java.lang.String language)
language
- the scripting language name for the script.public void setToken(java.lang.String token)
token
- the string filtered by the scriptpublic java.lang.String getToken()
public java.lang.String filter(java.lang.String token)
token
- the token to be filtered
public void setSrc(java.io.File file)
file
- the file containing the script source.public void addText(java.lang.String text)
text
- a component of the script text to be added.public void setManager(java.lang.String manager)
manager
- the scripting manager.public void setClasspath(Path classpath)
classpath
- an Ant Path object containing the search path.public Path createClasspath()
public void setClasspathRef(Reference r)
r
- a Reference to a Path instance to be used as the classpath
value.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |