| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.types.DataType
org.apache.tools.ant.types.AbstractFileSet
org.apache.tools.ant.types.resources.MultiRootFileSet
public class MultiRootFileSet
Union of file/dirsets that share the same patterns and selectors but have different roots.
| Nested Class Summary | |
|---|---|
| static class | MultiRootFileSet.SetTypeWhat to return from the set: files, directories or both. | 
| Field Summary | 
|---|
| Fields inherited from class org.apache.tools.ant.types.DataType | 
|---|
| checked, ref | 
| Fields inherited from class org.apache.tools.ant.ProjectComponent | 
|---|
| description, location, project | 
| Constructor Summary | |
|---|---|
| MultiRootFileSet() | |
| Method Summary | |
|---|---|
|  void | addConfiguredBaseDir(FileResource r)Adds a basedir as nested element. | 
|  java.lang.Object | clone()Return a MultiRootFileSet that has the same basedirs and same patternsets as this one. | 
|  boolean | isFilesystemOnly()Always returns true. | 
|  java.util.Iterator<Resource> | iterator()Fulfill the ResourceCollection contract. | 
|  void | setBaseDirs(java.lang.String dirs)Adds basedirs as a comman separated list. | 
|  void | setCache(boolean b)Set whether to cache collections. | 
|  void | setDir(java.io.File dir)Sets the base-directory for this instance. | 
|  void | setRefid(Reference r)Makes this instance in effect a reference to another instance. | 
|  void | setType(MultiRootFileSet.SetType type)Determines the types of resources to return. | 
|  int | size()Fulfill the ResourceCollection contract. | 
|  java.lang.String | toString()Returns included directories as a list of semicolon-separated paths. | 
| Methods inherited from class org.apache.tools.ant.types.DataType | 
|---|
| checkAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, tooManyAttributes | 
| Methods inherited from class org.apache.tools.ant.ProjectComponent | 
|---|
| getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public MultiRootFileSet()
| Method Detail | 
|---|
public void setDir(java.io.File dir)
AbstractFileSet
setDir in class AbstractFileSetdir - the directory's File instance.public void setType(MultiRootFileSet.SetType type)
type - the types of resources to returnpublic void setCache(boolean b)
b - boolean cache flag.public void setBaseDirs(java.lang.String dirs)
b - boolean cache flag.public void addConfiguredBaseDir(FileResource r)
public void setRefid(Reference r)
AbstractFileSetYou must not set another attribute or nest elements inside this element if you make it a reference.
setRefid in class AbstractFileSetr - the Reference to use.public java.lang.Object clone()
clone in class AbstractFileSetpublic java.util.Iterator<Resource> iterator()
iterator in interface java.lang.Iterable<Resource>iterator in interface ResourceCollectionpublic int size()
size in interface ResourceCollectionpublic boolean isFilesystemOnly()
isFilesystemOnly in interface ResourceCollectionpublic java.lang.String toString()
toString in class AbstractFileSetString of included directories.| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||