Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.MatchingTask
Fields inherited from class org.apache.tools.ant.ProjectComponent | |
description , location , project |
Method Summary | |
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
PatternSet.NameEntry |
|
PatternSet.NameEntry |
|
PatternSet.NameEntry |
|
PatternSet.NameEntry |
|
PatternSet |
|
protected DirectoryScanner |
|
protected FileSet |
|
FileSelector[] |
|
boolean |
|
int |
|
Enumeration |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
Methods inherited from class org.apache.tools.ant.Task | |
bindToOwner , execute , getOwningTarget , getRuntimeConfigurableWrapper , getTaskName , getTaskType , getWrapper , handleErrorFlush , handleErrorOutput , handleFlush , handleInput , handleOutput , init , isInvalid , log , log , log , log , maybeConfigure , perform , reconfigure , setOwningTarget , setRuntimeConfigurableWrapper , setTaskName , setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent | |
clone , getDescription , getLocation , getProject , log , log , setDescription , setLocation , setProject |
public void XsetIgnore(String ignoreString)
List of filenames and directory names to not include. They should be either , or " " (space) separated. The ignored files will be logged.
- Parameters:
ignoreString
- the string containing the files to ignore.
public void XsetItems(String itemString)
Set this to be the items in the base directory that you want to be included. You can also specify "*" for the items (ie: items="*") and it will include all the items in the base directory.
- Parameters:
itemString
- the string containing the files to include.
public void add(FileSelector selector)
add an arbitary selector
- Specified by:
- add in interface SelectorContainer
- Parameters:
selector
- the selector to add
- Since:
- Ant 1.6
public void addAnd(AndSelector selector)
add an "And" selector entry on the selector list
- Specified by:
- addAnd in interface SelectorContainer
- Parameters:
selector
- the selector to add
public void addContains(ContainsSelector selector)
add a contains selector entry on the selector list
- Specified by:
- addContains in interface SelectorContainer
- Parameters:
selector
- the selector to add
public void addContainsRegexp(ContainsRegexpSelector selector)
add a regular expression selector entry on the selector list
- Specified by:
- addContainsRegexp in interface SelectorContainer
- Parameters:
selector
- the selector to add
public void addCustom(ExtendSelector selector)
add an extended selector entry on the selector list
- Specified by:
- addCustom in interface SelectorContainer
- Parameters:
selector
- the selector to add
public void addDate(DateSelector selector)
add a selector date entry on the selector list
- Specified by:
- addDate in interface SelectorContainer
- Parameters:
selector
- the selector to add
public void addDepend(DependSelector selector)
add a depends selector entry on the selector list
- Specified by:
- addDepend in interface SelectorContainer
- Parameters:
selector
- the selector to add
public void addDepth(DepthSelector selector)
add a depth selector entry on the selector list
- Specified by:
- addDepth in interface SelectorContainer
- Parameters:
selector
- the selector to add
public void addDifferent(DifferentSelector selector)
add a type selector entry on the type list
- Specified by:
- addDifferent in interface SelectorContainer
- Parameters:
selector
- the selector to add
- Since:
- ant 1.6
public void addFilename(FilenameSelector selector)
add a selector filename entry on the selector list
- Specified by:
- addFilename in interface SelectorContainer
- Parameters:
selector
- the selector to add
public void addMajority(MajoritySelector selector)
add a majority selector entry on the selector list
- Specified by:
- addMajority in interface SelectorContainer
- Parameters:
selector
- the selector to add
public void addModified(ModifiedSelector selector)
add the modified selector
- Specified by:
- addModified in interface SelectorContainer
- Parameters:
selector
- the selector to add
- Since:
- ant 1.6
public void addNone(NoneSelector selector)
add a "None" selector entry on the selector list
- Specified by:
- addNone in interface SelectorContainer
- Parameters:
selector
- the selector to add
public void addNot(NotSelector selector)
add a "Not" selector entry on the selector list
- Specified by:
- addNot in interface SelectorContainer
- Parameters:
selector
- the selector to add
public void addOr(OrSelector selector)
add an "Or" selector entry on the selector list
- Specified by:
- addOr in interface SelectorContainer
- Parameters:
selector
- the selector to add
public void addPresent(PresentSelector selector)
add a present selector entry on the selector list
- Specified by:
- addPresent in interface SelectorContainer
- Parameters:
selector
- the selector to add
public void addSelector(SelectSelector selector)
add a "Select" selector entry on the selector list
- Specified by:
- addSelector in interface SelectorContainer
- Parameters:
selector
- the selector to add
public void addSize(SizeSelector selector)
add a selector size entry on the selector list
- Specified by:
- addSize in interface SelectorContainer
- Parameters:
selector
- the selector to add
public void addType(TypeSelector selector)
add a type selector entry on the type list
- Specified by:
- addType in interface SelectorContainer
- Parameters:
selector
- the selector to add
- Since:
- ant 1.6
public void appendSelector(FileSelector selector)
Add a new selector into this container.
- Specified by:
- appendSelector in interface SelectorContainer
- Parameters:
selector
- the new selector to add
public PatternSet.NameEntry createExclude()
add a name entry on the exclude list
- Returns:
- an NameEntry object to be configured
public PatternSet.NameEntry createExcludesFile()
add a name entry on the include files list
- Returns:
- an NameEntry object to be configured
public PatternSet.NameEntry createInclude()
add a name entry on the include list
- Returns:
- a NameEntry object to be configured
public PatternSet.NameEntry createIncludesFile()
add a name entry on the include files list
- Returns:
- an NameEntry object to be configured
public PatternSet createPatternSet()
add a set of patterns
- Returns:
- PatternSet object to be configured
protected DirectoryScanner getDirectoryScanner(File baseDir)
Returns the directory scanner needed to access the files to process.
- Parameters:
baseDir
- the base directory to use with the fileset
- Returns:
- a directory scanner
protected final FileSet getImplicitFileSet()
Accessor for the implicit fileset.
- Returns:
- the implicit fileset
- Since:
- Ant 1.5.2
public FileSelector[] getSelectors(Project p)
Returns the set of selectors as an array.
- Specified by:
- getSelectors in interface SelectorContainer
- Parameters:
p
- the current project
- Returns:
- an array of selectors in this container
public boolean hasSelectors()
Indicates whether there are any selectors here.
- Specified by:
- hasSelectors in interface SelectorContainer
- Returns:
- whether any selectors are in this container
public int selectorCount()
Gives the count of the number of selectors in this container
- Specified by:
- selectorCount in interface SelectorContainer
- Returns:
- the number of selectors in this container
public Enumeration selectorElements()
Returns an enumerator for accessing the set of selectors.
- Specified by:
- selectorElements in interface SelectorContainer
- Returns:
- an enumerator that goes through each of the selectors
public void setCaseSensitive(boolean isCaseSensitive)
Sets case sensitivity of the file system
- Parameters:
isCaseSensitive
- "true"|"on"|"yes" if file system is case sensitive, "false"|"off"|"no" when not.
public void setDefaultexcludes(boolean useDefaultExcludes)
Sets whether default exclusions should be used or not.
- Parameters:
useDefaultExcludes
- "true"|"on"|"yes" when default exclusions should be used, "false"|"off"|"no" when they shouldn't be used.
public void setExcludes(String excludes)
Sets the set of exclude patterns. Patterns may be separated by a comma or a space.
- Parameters:
excludes
- the string containing the exclude patterns
public void setExcludesfile(File excludesfile)
Sets the name of the file containing the includes patterns.
- Parameters:
excludesfile
- A string containing the filename to fetch the include patterns from.
public void setFollowSymlinks(boolean followSymlinks)
Sets whether or not symbolic links should be followed.
- Parameters:
followSymlinks
- whether or not symbolic links should be followed
public void setIncludes(String includes)
Sets the set of include patterns. Patterns may be separated by a comma or a space.
- Parameters:
includes
- the string containing the include patterns
public void setIncludesfile(File includesfile)
Sets the name of the file containing the includes patterns.
- Parameters:
includesfile
- A string containing the filename to fetch the include patterns from.
public void setProject(Project project)
.
- Overrides:
- setProject in interface ProjectComponent