org.apache.tools.ant.types.resources
public class Files extends AbstractSelectorContainer implements ResourceCollection
Since: Ant 1.7
Constructor Summary | |
---|---|
Files()
Construct a new Files collection. | |
protected | Files(Files f)
Construct a new Files collection, shallowly cloned
from the specified Files . |
Method Summary | |
---|---|
void | appendExcludes(String[] excludes)
Append excludes to the current list of include
patterns.
|
void | appendIncludes(String[] includes)
Append includes to the current list of include
patterns.
|
void | appendSelector(FileSelector selector)
Add a new selector into this container.
|
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). |
PatternSet.NameEntry | createExclude()
Add a name entry to the exclude list. |
PatternSet.NameEntry | createExcludesFile()
Add a name entry to the excludes files list. |
PatternSet.NameEntry | createInclude()
Add a name entry to the include list. |
PatternSet.NameEntry | createIncludesFile()
Add a name entry to the include files list. |
PatternSet | createPatternSet()
Create a nested patternset. |
boolean | getDefaultexcludes()
Get whether default exclusions should be used or not. |
protected Files | getRef()
Perform the check for circular references and return the
referenced Files collection. |
boolean | hasPatterns()
Find out whether this Files collection has patterns.
|
boolean | isCaseSensitive()
Find out if this Files collection is case-sensitive.
|
boolean | isFilesystemOnly()
Always returns true. |
boolean | isFollowSymlinks()
Find out whether symbolic links should be followed.
|
Iterator | iterator()
Fulfill the ResourceCollection contract. |
String[] | mergeExcludes(Project p)
Get the merged exclude patterns for this Files collection. |
String[] | mergeIncludes(Project p)
Get the merged include patterns for this Files collection. |
PatternSet | mergePatterns(Project p)
Get the merged patterns for this Files collection. |
void | setCaseSensitive(boolean caseSensitive)
Set case-sensitivity of the Files collection.
|
void | setDefaultexcludes(boolean useDefaultExcludes)
Set whether default exclusions should be used or not.
|
void | setExcludes(String excludes)
Append excludes to the current list of exclude
patterns.
|
void | setExcludesfile(File excl)
Set the File containing the excludes patterns.
|
void | setFollowSymlinks(boolean followSymlinks)
Set whether or not symbolic links should be followed.
|
void | setIncludes(String includes)
Append includes to the current list of include
patterns.
|
void | setIncludesfile(File incl)
Set the File containing the includes patterns.
|
void | setRefid(Reference r)
Make this instance in effect a reference to another instance.
|
int | size()
Fulfill the ResourceCollection contract. |
String | toString()
Format this Files collection as a String. |
Files
collection.Files
collection, shallowly cloned
from the specified Files
.Parameters: f the Files
to use as a template.
excludes
to the current list of include
patterns.
Parameters: excludes array containing the exclude patterns.
includes
to the current list of include
patterns.
Parameters: includes array containing the include patterns.
Parameters: selector the new FileSelector
to add.
Returns: a cloned Object.
Returns: PatternSet.NameEntry
.
Returns: PatternSet.NameEntry
.
Returns: PatternSet.NameEntry
.
Returns: PatternSet.NameEntry
.
Returns: PatternSet
.
Returns: the defaultexclusions value.
Returns: FileCollection
.
Returns: whether any patterns are in this container.
Returns: boolean
indicating whether the Files
collection is case-sensitive.
Returns: true indicating that all elements of a Files collection will be FileResources.
Returns: boolean
indicating whether symbolic links
should be followed.
Returns: an Iterator of Resources.
Parameters: p Project instance.
Returns: the exclude patterns of the default pattern set and all nested patternsets.
Parameters: p Project instance.
Returns: the include patterns of the default pattern set and all nested patternsets.
Parameters: p Project instance.
Returns: the default patternset merged with the additional sets in a new PatternSet instance.
Parameters: caseSensitive boolean
.
Parameters: useDefaultExcludes boolean
.
excludes
to the current list of exclude
patterns.
Patterns may be separated by a comma or a space.
Parameters: excludes the String
containing the exclude patterns.
File
containing the excludes patterns.
Parameters: excl File
instance.
Throws: BuildException if there is a problem.
Parameters: followSymlinks whether or not symbolic links should be followed.
includes
to the current list of include
patterns.
Patterns may be separated by a comma or a space.
Parameters: includes the String
containing the include patterns.
File
containing the includes patterns.
Parameters: incl File
instance.
Throws: BuildException if there is a problem.
You must not set another attribute or nest elements inside this element if you make it a reference.
Parameters: r the Reference
to use.
Throws: BuildException if there is a problem.
Returns: number of elements as int.
Returns: a descriptive String
.