| Modifier and Type | Field and Description |
|---|---|
| private File | basedir
fields updated for every selection |
| private File | |
| private String | |
| private ScriptRunnerHelper | helper
script runner helper |
| private ScriptRunnerBase | runner
script runner |
| private boolean | selected
selected flag |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public Path | Returns: an empty Path instance to be configured by Ant.Classpath to be used when searching for classes and resources. |
| public File | |
| public File | |
| public String | Returns: the filename of the file that is currently been testedget the filename of the file |
| private void | |
| public boolean | Returns: whether the file should be selected or notA java.io.File object for the base directory basedir, String The name of the file to check filename, File A File object for this filename file)Implements abstract org. Implements org. |
| public boolean | |
| public void | setClasspath(Path
an Ant Path object containing the search path. classpath)Set the classpath to be used when searching for classes and resources. |
| public void | setClasspathRef(Reference
a Reference to a Path instance to be used as the classpath
value. r)Set the classpath by reference. |
| public void | setEncoding(String
the encoding of the file containing the script source. encoding)Set the encoding of the script from an external file; optional. |
| public void | setLanguage(String
the scripting language name for the script. language)Defines the language (required). |
| public void | |
| public void | |
| public void | setProject(Project
the owner of this component. project)
Set the project.
|
| public void | setSelected(boolean
the selected state selected)set the selected state Intended for script use, not as an Ant attribute |
| public void | |
| public void |
| basedir | back to summary |
|---|---|
| private File basedir fields updated for every selection | |
| file | back to summary |
|---|---|
| private File file | |
| filename | back to summary |
|---|---|
| private String filename | |
| helper | back to summary |
|---|---|
| private ScriptRunnerHelper helper script runner helper | |
| runner | back to summary |
|---|---|
| private ScriptRunnerBase runner script runner | |
| selected | back to summary |
|---|---|
| private boolean selected selected flag | |
| ScriptSelector | back to summary |
|---|---|
| public ScriptSelector() | |
| addText | back to summary |
|---|---|
| public void addText(String text) The script text.
| |
| createClasspath | back to summary |
|---|---|
| public Path createClasspath() Classpath to be used when searching for classes and resources.
| |
| getBasedir | back to summary |
|---|---|
| public File getBasedir() get the base directory
| |
| getFile | back to summary |
|---|---|
| public File getFile() get the file that is currently to be tested
| |
| getFilename | back to summary |
|---|---|
| public String getFilename() get the filename of the file
| |
| init | back to summary |
|---|---|
| private void init() throws BuildException Initialize on demand.
| |
| isSelected | back to summary |
|---|---|
| public boolean isSelected(File basedir, String filename, File file) Implements abstract org. Implements org. 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. | |
| isSelected | back to summary |
|---|---|
| public boolean isSelected() get state of selected flag
| |
| setClasspath | back to summary |
|---|---|
| public void setClasspath(Path classpath) Set the classpath to be used when searching for classes and resources.
| |
| setClasspathRef | back to summary |
|---|---|
| public void setClasspathRef(Reference r) Set the classpath by reference.
| |
| setEncoding | back to summary |
|---|---|
| public void setEncoding(String encoding) Set the encoding of the script from an external file; optional.
| |
| setLanguage | back to summary |
|---|---|
| public void setLanguage(String language) Defines the language (required).
| |
| setManager | back to summary |
|---|---|
| public void setManager(String manager)
Deprecated
Defines the manager.
| |
| setManager | back to summary |
|---|---|
| public void setManager(ScriptManager manager) Set the script manager. | |
| setProject | back to summary |
|---|---|
| public void setProject(Project project) Overrides org. Set the project. | |
| setSelected | back to summary |
|---|---|
| public void setSelected(boolean selected) set the selected state Intended for script use, not as an Ant attribute
| |
| setSetBeans | back to summary |
|---|---|
| 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.
| |
| setSrc | back to summary |
|---|---|
| public void setSrc(File file) Load the script from an external file; optional.
| |