ResourceCollection implementation; like AbstractFileSet with absolute paths.
appendExcludes
public void appendExcludes(String[] excludes)
Append excludes
to the current list of include
patterns.
excludes
- array containing the exclude patterns.
appendIncludes
public void appendIncludes(String[] includes)
Append includes
to the current list of include
patterns.
includes
- array containing the include patterns.
clone
public Object clone()
Create a deep clone of this instance, except for the nested selectors
(the list of selectors is a shallow clone of this instance's list).
- clone in interface DataType
createExcludesFile
public PatternSet.NameEntry createExcludesFile()
Add a name entry to the excludes files list.
createIncludesFile
public PatternSet.NameEntry createIncludesFile()
Add a name entry to the include files list.
createPatternSet
public PatternSet createPatternSet()
Create a nested patternset.
getDefaultexcludes
public boolean getDefaultexcludes()
Get whether default exclusions should be used or not.
- the defaultexclusions value.
getRef
protected Files getRef()
Perform the check for circular references and return the
referenced Files collection.
hasPatterns
public boolean hasPatterns()
Find out whether this Files collection has patterns.
- whether any patterns are in this container.
isCaseSensitive
public boolean isCaseSensitive()
Find out if this Files collection is case-sensitive.
boolean
indicating whether the Files
collection is case-sensitive.
isFilesystemOnly
public boolean isFilesystemOnly()
Always returns true.
- isFilesystemOnly in interface ResourceCollection
- true indicating that all elements of a Files collection
will be FileResources.
isFollowSymlinks
public boolean isFollowSymlinks()
Find out whether symbolic links should be followed.
boolean
indicating whether symbolic links
should be followed.
iterator
public Iterator iterator()
Fulfill the ResourceCollection contract.
- iterator in interface ResourceCollection
- an Iterator of Resources.
mergeExcludes
public String[] mergeExcludes(Project p)
Get the merged exclude patterns for this Files collection.
- the exclude patterns of the default pattern set and all
nested patternsets.
mergeIncludes
public String[] mergeIncludes(Project p)
Get the merged include patterns for this Files collection.
- the include patterns of the default pattern set and all
nested patternsets.
mergePatterns
public PatternSet mergePatterns(Project p)
Get the merged patterns for this Files collection.
- the default patternset merged with the additional sets
in a new PatternSet instance.
setCaseSensitive
public void setCaseSensitive(boolean caseSensitive)
Set case-sensitivity of the Files collection.
setDefaultexcludes
public void setDefaultexcludes(boolean useDefaultExcludes)
Set whether default exclusions should be used or not.
useDefaultExcludes
- boolean
.
setExcludes
public void setExcludes(String excludes)
Append
excludes
to the current list of exclude
patterns.
Patterns may be separated by a comma or a space.
excludes
- the String
containing the exclude patterns.
setExcludesfile
public void setExcludesfile(File excl)
throws BuildException
Set the File
containing the excludes patterns.
setFollowSymlinks
public void setFollowSymlinks(boolean followSymlinks)
Set whether or not symbolic links should be followed.
followSymlinks
- whether or not symbolic links should be followed.
setIncludes
public void setIncludes(String includes)
Append
includes
to the current list of include
patterns.
Patterns may be separated by a comma or a space.
includes
- the String
containing the include patterns.
setIncludesfile
public void setIncludesfile(File incl)
throws BuildException
Set the File
containing the includes patterns.
setRefid
public void setRefid(Reference r)
throws BuildException
Make 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.
- setRefid in interface DataType
r
- the Reference
to use.
size
public int size()
Fulfill the ResourceCollection contract.
- size in interface ResourceCollection
- number of elements as int.