FileDocCategorySizeDatePackage
BCFileSet.javaAPI DocApache Ant 1.702272Wed Dec 13 06:16:18 GMT 2006org.apache.tools.ant.types.resources

BCFileSet

public class BCFileSet extends org.apache.tools.ant.types.FileSet
Utility FileSet that includes directories for backwards-compatibility with certain tasks e.g. Delete.
since
Ant 1.7

Fields Summary
Constructors Summary
public BCFileSet()
Default constructor.

    
public BCFileSet(org.apache.tools.ant.types.FileSet fs)
Construct a new BCFileSet from the specified FileSet.

param
fs the FileSet from which to inherit config.

        super(fs);
    
Methods Summary
public java.util.Iteratoriterator()
Fulfill the ResourceCollection contract.

return
an Iterator of Resources.
since
Ant 1.7

        if (isReference()) {
            return ((FileSet) getRef(getProject())).iterator();
        }
        FileResourceIterator result = new FileResourceIterator(getDir());
        result.addFiles(getDirectoryScanner().getIncludedFiles());
        result.addFiles(getDirectoryScanner().getIncludedDirectories());
        return result;
    
public intsize()
Fulfill the ResourceCollection contract.

return
number of elements as int.
since
Ant 1.7

        if (isReference()) {
            return ((FileSet) getRef(getProject())).size();
        }
        return getDirectoryScanner().getIncludedFilesCount()
            + getDirectoryScanner().getIncludedDirsCount();