| org.apache.tools.ant.types.selectors.BaseSelector org.apache.tools.ant.types.selectors.ExtendSelector
ExtendSelector | public class ExtendSelector extends BaseSelector (Code) | | Selector that selects files by forwarding the request on to other classes.
since: 1.5 |
Method Summary | |
public void | addParam(Parameter p) Create new parameters to pass to custom selector. | final public Path | createClasspath() Specify the classpath to use to load the Selector (nested element). | final public Path | getClasspath() | public boolean | isSelected(File basedir, String filename, File file) Allows the custom selector to choose whether to select a file. | public void | selectorCreate() Instantiates the identified custom selector class. | public void | setClassname(String classname) Sets the classname of the custom selector. | final public void | setClasspath(Path classpath) Set the classpath to load the classname specified using an attribute. | public void | setClasspathref(Reference r) Set the classpath to use for loading a custom selector by using
a reference. | public void | verifySettings() These are errors specific to ExtendSelector only. |
ExtendSelector | public ExtendSelector()(Code) | | Default constructor.
|
addParam | public void addParam(Parameter p)(Code) | | Create new parameters to pass to custom selector.
Parameters: p - The new Parameter object |
createClasspath | final public Path createClasspath()(Code) | | Specify the classpath to use to load the Selector (nested element).
a classpath to be configured |
getClasspath | final public Path getClasspath()(Code) | | Get the classpath
the classpath |
isSelected | public boolean isSelected(File basedir, String filename, File file) throws BuildException(Code) | | Allows the custom selector to choose whether to select a file. This
is also where the Parameters are passed to the custom selector,
since we know we must have them all by now. And since we must know
both classpath and classname, creating the class is deferred to here
as well.
Parameters: basedir - The the base directory. Parameters: filename - The name of the file to check. Parameters: file - A File object for this filename. whether the file should be selected or not. exception: BuildException - if an error occurs. |
selectorCreate | public void selectorCreate()(Code) | | Instantiates the identified custom selector class.
|
setClassname | public void setClassname(String classname)(Code) | | Sets the classname of the custom selector.
Parameters: classname - is the class which implements this selector |
setClasspath | final public void setClasspath(Path classpath)(Code) | | Set the classpath to load the classname specified using an attribute.
Parameters: classpath - the classpath to use |
setClasspathref | public void setClasspathref(Reference r)(Code) | | Set the classpath to use for loading a custom selector by using
a reference.
Parameters: r - a reference to the classpath |
verifySettings | public void verifySettings()(Code) | | These are errors specific to ExtendSelector only. If there are
errors in the custom selector, it should throw a BuildException
when isSelected() is called.
|
|
|