Class MultiRootFileSet
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.resources.MultiRootFileSet
- All Implemented Interfaces:
- Cloneable,- Iterable<Resource>,- ResourceCollection,- SelectorContainer
Union of file/dirsets that share the same patterns and selectors
 but have different roots.
- Since:
- Ant 1.9.4
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic enumWhat to return from the set: files, directories or both.
- 
Field SummaryFields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidAdds a basedir as nested element.clone()Return a MultiRootFileSet that has the same basedirs and same patternsets as this one.booleanAlways returns true.iterator()Fulfill the ResourceCollection contract.voidsetBaseDirs(String dirs) Adds basedirs as a comma separated list.voidsetCache(boolean b) Set whether to cache collections.voidSets the base-directory for this instance.voidMakes this instance in effect a reference to another instance.voidDetermines the types of resources to return.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, getRef, getSelectors, hasPatterns, hasSelectors, isCaseSensitive, isFollowSymlinks, mergeExcludes, mergeIncludes, mergePatterns, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setErrorOnMissingDir, setExcludes, setExcludesfile, setFile, setFollowSymlinks, setIncludes, setIncludesfile, setMaxLevelsOfSymlinks, 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- 
MultiRootFileSetpublic MultiRootFileSet()
 
- 
- 
Method Details- 
setDirDescription copied from class:AbstractFileSetSets the base-directory for this instance.- Overrides:
- setDirin class- AbstractFileSet
- Parameters:
- dir- the directory's- Fileinstance.
 
- 
setTypeDetermines the types of resources to return.- Parameters:
- type- the types of resources to return
 
- 
setCachepublic void setCache(boolean b) Set whether to cache collections.- Parameters:
- b- boolean cache flag.
 
- 
setBaseDirsAdds basedirs as a comma separated list.- Parameters:
- dirs- directories as CSV
 
- 
addConfiguredBaseDirAdds a basedir as nested element.- Parameters:
- r- basedir
 
- 
setRefidDescription copied from class:AbstractFileSetMakes 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. - Overrides:
- setRefidin class- AbstractFileSet
- Parameters:
- r- the- Referenceto use.
 
- 
cloneReturn a MultiRootFileSet that has the same basedirs and same patternsets as this one.- Overrides:
- clonein class- AbstractFileSet
- Returns:
- the cloned MultiRootFileSet.
 
- 
iterator
- 
sizepublic int size()Fulfill the ResourceCollection contract.- Specified by:
- sizein interface- ResourceCollection
- Returns:
- number of elements as int.
 
- 
isFilesystemOnlypublic boolean isFilesystemOnly()Always returns true.- Specified by:
- isFilesystemOnlyin interface- ResourceCollection
- Returns:
- true indicating that all elements will be FileResources.
 
- 
toStringReturns included directories as a list of semicolon-separated paths.- Overrides:
- toStringin class- AbstractFileSet
- Returns:
- a Stringof included directories.
 
 
-