Subclass as hint for supporting tasks that the included directories
instead of files should be used.
| Method from org.apache.tools.ant.types.DirSet Detail: |
public Object clone() {
if (isReference()) {
return ((DirSet) getRef(getProject())).clone();
} else {
return super.clone();
}
}
Return a DirSet that has the same basedir and same patternsets
as this one. |
public boolean isFilesystemOnly() {
return true;
}
|
public Iterator iterator() {
if (isReference()) {
return ((DirSet) getRef(getProject())).iterator();
}
return new FileResourceIterator(getDir(getProject()),
getDirectoryScanner(getProject()).getIncludedDirectories());
}
Fulfill the ResourceCollection contract. |
public int size() {
if (isReference()) {
return ((DirSet) getRef(getProject())).size();
}
return getDirectoryScanner(getProject()).getIncludedDirsCount();
}
Fulfill the ResourceCollection contract. |
public String toString() {
DirectoryScanner ds = getDirectoryScanner(getProject());
String[] dirs = ds.getIncludedDirectories();
StringBuffer sb = new StringBuffer();
for (int i = 0; i < dirs.length; i++) {
if (i > 0) {
sb.append(';");
}
sb.append(dirs[i]);
}
return sb.toString();
}
Returns included directories as a list of semicolon-separated paths. |