org.apache.tools.ant.taskdefs
public abstract class MatchingTask extends Task implements SelectorContainer
Since: Ant 1.1
Field Summary | |
---|---|
protected FileSet | fileset |
Method Summary | |
---|---|
void | add(FileSelector selector)
add an arbitary selector |
void | addAnd(AndSelector selector)
add an "And" selector entry on the selector list |
void | addContains(ContainsSelector selector)
add a contains selector entry on the selector list |
void | addContainsRegexp(ContainsRegexpSelector selector)
add a regular expression selector entry on the selector list |
void | addCustom(ExtendSelector selector)
add an extended selector entry on the selector list |
void | addDate(DateSelector selector)
add a selector date entry on the selector list |
void | addDepend(DependSelector selector)
add a depends selector entry on the selector list |
void | addDepth(DepthSelector selector)
add a depth selector entry on the selector list |
void | addDifferent(DifferentSelector selector)
add a type selector entry on the type list |
void | addFilename(FilenameSelector selector)
add a selector filename entry on the selector list |
void | addMajority(MajoritySelector selector)
add a majority selector entry on the selector list |
void | addModified(ModifiedSelector selector)
add the modified selector |
void | addNone(NoneSelector selector)
add a "None" selector entry on the selector list |
void | addNot(NotSelector selector)
add a "Not" selector entry on the selector list |
void | addOr(OrSelector selector)
add an "Or" selector entry on the selector list |
void | addPresent(PresentSelector selector)
add a present selector entry on the selector list |
void | addSelector(SelectSelector selector)
add a "Select" selector entry on the selector list |
void | addSize(SizeSelector selector)
add a selector size entry on the selector list |
void | addType(TypeSelector selector)
add a type selector entry on the type list |
void | appendSelector(FileSelector selector)
Add a new selector into this container.
|
PatternSet.NameEntry | createExclude()
add a name entry on the exclude list |
PatternSet.NameEntry | createExcludesFile()
add a name entry on the include files list |
PatternSet.NameEntry | createInclude()
add a name entry on the include list |
PatternSet.NameEntry | createIncludesFile()
add a name entry on the include files list |
PatternSet | createPatternSet()
add a set of patterns |
protected DirectoryScanner | getDirectoryScanner(File baseDir)
Returns the directory scanner needed to access the files to process. |
protected FileSet | getImplicitFileSet()
Accessor for the implicit fileset.
|
FileSelector[] | getSelectors(Project p)
Returns the set of selectors as an array. |
boolean | hasSelectors()
Indicates whether there are any selectors here.
|
int | selectorCount()
Gives the count of the number of selectors in this container
|
Enumeration | selectorElements()
Returns an enumerator for accessing the set of selectors.
|
void | setCaseSensitive(boolean isCaseSensitive)
Sets case sensitivity of the file system
|
void | setDefaultexcludes(boolean useDefaultExcludes)
Sets whether default exclusions should be used or not.
|
void | setExcludes(String excludes)
Sets the set of exclude patterns. |
void | setExcludesfile(File excludesfile)
Sets the name of the file containing the includes patterns.
|
void | setFollowSymlinks(boolean followSymlinks)
Sets whether or not symbolic links should be followed.
|
void | setIncludes(String includes)
Sets the set of include patterns. |
void | setIncludesfile(File includesfile)
Sets the name of the file containing the includes patterns.
|
void | setProject(Project project) |
void | XsetIgnore(String ignoreString)
List of filenames and directory names to not include. |
void | XsetItems(String itemString)
Set this to be the items in the base directory that you want to be
included. |
Parameters: selector the selector to add
Since: Ant 1.6
Parameters: selector the selector to add
Parameters: selector the selector to add
Parameters: selector the selector to add
Parameters: selector the selector to add
Parameters: selector the selector to add
Parameters: selector the selector to add
Parameters: selector the selector to add
Parameters: selector the selector to add
Since: ant 1.6
Parameters: selector the selector to add
Parameters: selector the selector to add
Parameters: selector the selector to add
Since: ant 1.6
Parameters: selector the selector to add
Parameters: selector the selector to add
Parameters: selector the selector to add
Parameters: selector the selector to add
Parameters: selector the selector to add
Parameters: selector the selector to add
Parameters: selector the selector to add
Since: ant 1.6
Parameters: selector the new selector to add
Returns: an NameEntry object to be configured
Returns: an NameEntry object to be configured
Returns: a NameEntry object to be configured
Returns: an NameEntry object to be configured
Returns: PatternSet object to be configured
Since: Ant 1.5.2
Parameters: p the current project
Returns: an array of selectors in this container
Returns: whether any selectors are in this container
Returns: the number of selectors in this container
Returns: an enumerator that goes through each of the selectors
Parameters: isCaseSensitive "true"|"on"|"yes" if file system is case sensitive, "false"|"off"|"no" when not.
Parameters: useDefaultExcludes "true"|"on"|"yes" when default exclusions should be used, "false"|"off"|"no" when they shouldn't be used.
Parameters: excludes the string containing the exclude patterns
Parameters: excludesfile A string containing the filename to fetch the include patterns from.
Parameters: followSymlinks whether or not symbolic links should be followed
Parameters: includes the string containing the include patterns
Parameters: includesfile A string containing the filename to fetch the include patterns from.
See Also: ProjectComponent
Parameters: ignoreString the string containing the files to ignore.
Parameters: itemString the string containing the files to include.