public class DirSet extends AbstractFileSet implements ResourceCollection
description, location, project
Modifier | Constructor and Description |
---|---|
|
DirSet()
Constructor for DirSet.
|
protected |
DirSet(DirSet dirset)
Constructor for DirSet, with DirSet to shallowly clone.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Return a DirSet that has the same basedir and same patternsets
as this one.
|
protected AbstractFileSet |
getRef(Project p)
Performs the check for circular references and returns the
referenced FileSet.
|
boolean |
isFilesystemOnly()
Always returns true.
|
java.util.Iterator<Resource> |
iterator()
Fulfill the ResourceCollection contract.
|
int |
size()
Fulfill the ResourceCollection contract.
|
java.lang.String |
toString()
Returns included directories as a list of semicolon-separated paths.
|
add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addExecutable, addFilename, addMajority, addModified, addNone, addNot, addOr, addOwnedBy, addPosixGroup, addPosixPermissions, addPresent, addReadable, addSelector, addSize, addSymlink, addType, addWritable, appendExcludes, appendIncludes, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, dieOnCircularReference, getDefaultexcludes, getDir, getDir, getDirectoryScanner, getDirectoryScanner, getErrorOnMissingDir, getMaxLevelsOfSymlinks, getSelectors, hasPatterns, hasSelectors, isCaseSensitive, isFollowSymlinks, mergeExcludes, mergeIncludes, mergePatterns, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setDir, setErrorOnMissingDir, setExcludes, setExcludesfile, setFile, setFollowSymlinks, setIncludes, setIncludesfile, setMaxLevelsOfSymlinks, setRefid, setupDirectoryScanner, setupDirectoryScanner
checkAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, tooManyAttributes
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isEmpty, stream
public DirSet()
protected DirSet(DirSet dirset)
dirset
- the dirset to clone.public java.lang.Object clone()
clone
in class AbstractFileSet
public java.util.Iterator<Resource> iterator()
iterator
in interface java.lang.Iterable<Resource>
public int size()
size
in interface ResourceCollection
public boolean isFilesystemOnly()
isFilesystemOnly
in interface ResourceCollection
public java.lang.String toString()
toString
in class AbstractFileSet
String
of included directories.protected AbstractFileSet getRef(Project p)
AbstractFileSet
getRef()
providing implementations containing the special support
for FileSet references, which can be handled by all ArchiveFileSets.
NB! This method must be overridden in subclasses such as FileSet and DirSet
to distinguish between the data types.getRef
in class AbstractFileSet
p
- the current project