Class BCFileSet

  • All Implemented Interfaces:
    java.lang.Cloneable, java.lang.Iterable<Resource>, ResourceCollection, SelectorContainer

    public class BCFileSet
    extends FileSet
    Utility FileSet that includes directories for backwards-compatibility with certain tasks e.g. Delete.
    Since:
    Ant 1.7
    • Constructor Detail

      • BCFileSet

        public BCFileSet()
        Default constructor.
      • BCFileSet

        public BCFileSet​(FileSet fs)
        Construct a new BCFileSet from the specified FileSet.
        Parameters:
        fs - the FileSet from which to inherit config.
    • Method Detail

      • iterator

        public java.util.Iterator<Resource> iterator()
        Fulfill the ResourceCollection contract.
        Specified by:
        iterator in interface java.lang.Iterable<Resource>
        Overrides:
        iterator in class FileSet
        Returns:
        an Iterator of Resources.
        Since:
        Ant 1.7
      • size

        public int size()
        Fulfill the ResourceCollection contract.
        Specified by:
        size in interface ResourceCollection
        Overrides:
        size in class FileSet
        Returns:
        number of elements as int.
        Since:
        Ant 1.7