| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.apache.tools.ant.ProjectComponentorg.apache.tools.ant.types.DataTypeorg.apache.tools.ant.types.AbstractFileSetField Summary |
Fields inherited from class org.apache.tools.ant.types.DataType | |
checked, description, ref | |
Fields inherited from class org.apache.tools.ant.ProjectComponent | |
project | |
Constructor Summary | |
| |
| |
Method Summary | |
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
Object |
|
PatternSet.NameEntry |
|
PatternSet.NameEntry |
|
PatternSet.NameEntry |
|
PatternSet.NameEntry |
|
PatternSet |
|
protected String |
|
boolean |
|
File | |
DirectoryScanner |
|
protected AbstractFileSet | |
FileSelector[] |
|
boolean |
|
boolean |
|
boolean |
|
int |
|
Enumeration |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void | |
void |
|
String |
|
Methods inherited from class org.apache.tools.ant.types.DataType | |
checkAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, getCheckedRef, getDescription, getRefid, isChecked, isReference, noChildrenAllowed, setChecked, setDescription, setRefid, tooManyAttributes | |
Methods inherited from class org.apache.tools.ant.ProjectComponent | |
getProject, log, log, setProject | |
public AbstractFileSet()
Construct a newAbstractFileSet.
protected AbstractFileSet(AbstractFileSet fileset)
Construct a newAbstractFileSet, shallowly cloned from the specifiedAbstractFileSet.
- Parameters:
fileset- theAbstractFileSetto use as a template.
public void add(FileSelector selector)
Add an arbitary selector.
- Specified by:
- add in interface SelectorContainer
- Parameters:
selector- theFileSelectorto 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- theAndSelectorto add.
public void addContains(ContainsSelector selector)
Add a contains selector entry on the selector list.
- Specified by:
- addContains in interface SelectorContainer
- Parameters:
selector- theContainsSelectorto add.
public void addContainsRegexp(ContainsRegexpSelector selector)
Add a regular expression selector entry on the selector list.
- Specified by:
- addContainsRegexp in interface SelectorContainer
- Parameters:
selector- theContainsRegexpSelectorto add.
public void addCustom(ExtendSelector selector)
Add an extended selector entry on the selector list.
- Specified by:
- addCustom in interface SelectorContainer
- Parameters:
selector- theExtendSelectorto add.
public void addDate(DateSelector selector)
Add a selector date entry on the selector list.
- Specified by:
- addDate in interface SelectorContainer
- Parameters:
selector- theDateSelectorto add.
public void addDepend(DependSelector selector)
Add a depends selector entry on the selector list.
- Specified by:
- addDepend in interface SelectorContainer
- Parameters:
selector- theDependSelectorto add.
public void addDepth(DepthSelector selector)
Add a depth selector entry on the selector list.
- Specified by:
- addDepth in interface SelectorContainer
- Parameters:
selector- theDepthSelectorto add.
public void addDifferent(DifferentSelector selector)
Add a DifferentSelector entry on the selector list.
- Specified by:
- addDifferent in interface SelectorContainer
- Parameters:
selector- theDifferentSelectorto add.
public void addFilename(FilenameSelector selector)
Add a selector filename entry on the selector list.
- Specified by:
- addFilename in interface SelectorContainer
- Parameters:
selector- theFilenameSelectorto add.
public void addMajority(MajoritySelector selector)
Add a majority selector entry on the selector list.
- Specified by:
- addMajority in interface SelectorContainer
- Parameters:
selector- theMajoritySelectorto add.
public void addModified(ModifiedSelector selector)
Add the modified selector.
- Specified by:
- addModified in interface SelectorContainer
- Parameters:
selector- theModifiedSelectorto 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- theNoneSelectorto add.
public void addNot(NotSelector selector)
Add a "Not" selector entry on the selector list.
- Specified by:
- addNot in interface SelectorContainer
- Parameters:
selector- theNotSelectorto add.
public void addOr(OrSelector selector)
Add an "Or" selector entry on the selector list.
- Specified by:
- addOr in interface SelectorContainer
- Parameters:
selector- theOrSelectorto add.
public void addPresent(PresentSelector selector)
Add a present selector entry on the selector list.
- Specified by:
- addPresent in interface SelectorContainer
- Parameters:
selector- thePresentSelectorto add.
public void addSelector(SelectSelector selector)
Add a "Select" selector entry on the selector list.
- Specified by:
- addSelector in interface SelectorContainer
- Parameters:
selector- theSelectSelectorto add.
public void addSize(SizeSelector selector)
Add a selector size entry on the selector list.
- Specified by:
- addSize in interface SelectorContainer
- Parameters:
selector- theSizeSelectorto add.
public void addType(TypeSelector selector)
Add a selector type entry on the selector list.
- Specified by:
- addType in interface SelectorContainer
- Parameters:
selector- theTypeSelectorto add.
public void appendSelector(FileSelector selector)
Add a new selector into this container.
- Specified by:
- appendSelector in interface SelectorContainer
- Parameters:
selector- the newFileSelectorto add.
public Object clone()
Creates a deep clone of this instance, except for the nested selectors (the list of selectors is a shallow clone of this instance's list).
- Since:
- Ant 1.6
public PatternSet.NameEntry createExclude()
Add a name entry to the exclude list.
- Returns:
PatternSet.NameEntry.
public PatternSet.NameEntry createExcludesFile()
Add a name entry to the excludes files list.
- Returns:
PatternSet.NameEntry.
public PatternSet.NameEntry createInclude()
Add a name entry to the include list.
- Returns:
PatternSet.NameEntry.
public PatternSet.NameEntry createIncludesFile()
Add a name entry to the include files list.
- Returns:
PatternSet.NameEntry.
public PatternSet createPatternSet()
Creates a nested patternset.
- Returns:
PatternSet.
protected String getDataTypeName()
Gets as descriptive as possible a name used for this datatype instance.
- Returns:
Stringname.
public boolean getDefaultexcludes()
Whether default exclusions should be used or not.
- Since:
- Ant 1.6.3
public File getDir(Project p)
Retrieves the base-directory for this instance.
- Parameters:
p- theProjectagainst which the reference is resolved, if set.
- Returns:
File.
public DirectoryScanner getDirectoryScanner(Project p)
Returns the directory scanner needed to access the files to process.
- Returns:
- a
DirectoryScannerinstance.
protected AbstractFileSet getRef(Project p)
Performs the check for circular references and returns the referenced FileSet.
public FileSelector[] getSelectors(Project p)
Returns the set of selectors as an array.
- Specified by:
- getSelectors in interface SelectorContainer
- Returns:
- a
FileSelector[]of the selectors in this container.
public boolean hasPatterns()
Indicates whether there are any patterns here.
- Returns:
- whether any patterns are 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 boolean isFollowSymlinks()
Find out if the fileset wants to follow symbolic links.
- Returns:
booleanindicating whether symbolic links should be followed.
- Since:
- Ant 1.6
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 as an
int.
public Enumeration selectorElements()
Returns an enumerator for accessing the set of selectors.
- Specified by:
- selectorElements in interface SelectorContainer
- Returns:
- an
Enumerationof selectors.
public void setCaseSensitive(boolean isCaseSensitive)
Sets case sensitivity of the file system.
- Parameters:
isCaseSensitive-boolean.
public void setDefaultexcludes(boolean useDefaultExcludes)
Sets whether default exclusions should be used or not.
- Parameters:
useDefaultExcludes-boolean.
public void setDir(File dir)
throws BuildExceptionSets the base-directory for this instance.
- Parameters:
dir- the directory'sFileinstance.
public void setExcludes(String excludes)
Appendsexcludesto the current list of exclude patterns. Patterns may be separated by a comma or a space.
- Parameters:
excludes- theStringcontaining the exclude patterns.
public void setExcludesfile(File excl)
throws BuildExceptionSets theFilecontaining the excludes patterns.
- Parameters:
excl-Fileinstance.
public void setFile(File file)
Creates a single file fileset.
- Parameters:
file- the singleFileincluded in thisAbstractFileSet.
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)
Appendsincludesto the current list of include patterns. Patterns may be separated by a comma or a space.
- Parameters:
includes- theStringcontaining the include patterns.
public void setIncludesfile(File incl)
throws BuildExceptionSets theFilecontaining the includes patterns.
- Parameters:
incl-Fileinstance.
public void setRefid(Reference r) throws BuildException
Makes this instance in effect a reference to another instance. You must not set another attribute or nest elements inside this element if you make it a reference.
- Parameters:
r- theReferenceto use.
public void setupDirectoryScanner(FileScanner ds, Project p)
Set up the specified directory scanner against the specified project.
- Parameters:
ds- aFileScannerinstance.p- an AntProjectinstance.
public String toString()
Returns included files as a list of semicolon-separated filenames.
- Returns:
- a
Stringof included filenames.