Package org.apache.tools.ant.types
Class DirSet
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.types.DataType
org.apache.tools.ant.types.AbstractFileSet
org.apache.tools.ant.types.DirSet
- All Implemented Interfaces:
- Cloneable,- Iterable<Resource>,- ResourceCollection,- SelectorContainer
Subclass as hint for supporting tasks that the included directories
 instead of files should be used.
- Since:
- Ant 1.5
- 
Field SummaryFields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionclone()Return a DirSet that has the same basedir and same patternsets as this one.protected AbstractFileSetPerforms the check for circular references and returns the referenced FileSet.booleanAlways returns true.iterator()Fulfill the ResourceCollection contract.intsize()Fulfill the ResourceCollection contract.toString()Returns included directories as a list of semicolon-separated paths.Methods inherited from class org.apache.tools.ant.types.AbstractFileSetadd, 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, setupDirectoryScannerMethods inherited from class org.apache.tools.ant.types.DataTypecheckAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, tooManyAttributesMethods inherited from class org.apache.tools.ant.ProjectComponentgetDescription, getLocation, getProject, log, log, setDescription, setLocation, setProjectMethods inherited from class java.lang.Objectequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.IterableforEach, spliteratorMethods inherited from interface org.apache.tools.ant.types.ResourceCollectionisEmpty, stream
- 
Constructor Details- 
DirSetpublic DirSet()Constructor for DirSet.
- 
DirSetConstructor for DirSet, with DirSet to shallowly clone.- Parameters:
- dirset- the dirset to clone.
 
 
- 
- 
Method Details- 
cloneReturn a DirSet that has the same basedir and same patternsets as this one.- Overrides:
- clonein class- AbstractFileSet
- Returns:
- the cloned dirset.
 
- 
iteratorFulfill the ResourceCollection contract.
- 
sizepublic int size()Fulfill the ResourceCollection contract.- Specified by:
- sizein interface- ResourceCollection
- Returns:
- number of elements as int.
- Since:
- Ant 1.7
 
- 
isFilesystemOnlypublic boolean isFilesystemOnly()Always returns true.- Specified by:
- isFilesystemOnlyin interface- ResourceCollection
- Returns:
- true indicating that all elements will be FileResources.
- Since:
- Ant 1.7
 
- 
toStringReturns included directories as a list of semicolon-separated paths.- Overrides:
- toStringin class- AbstractFileSet
- Returns:
- a Stringof included directories.
 
- 
getRefDescription copied from class:AbstractFileSetPerforms the check for circular references and returns the referenced FileSet. This method can be overridden together withgetRef()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.- Overrides:
- getRefin class- AbstractFileSet
- Parameters:
- p- the current project
- Returns:
- the dereferenced object.
 
 
-