Class FileSet

    • Constructor Detail

      • FileSet

        public FileSet()
        Constructor for FileSet.
      • FileSet

        protected FileSet​(FileSet fileset)
        Constructor for FileSet, with FileSet to shallowly clone.
        Parameters:
        fileset - the fileset to clone
    • Method Detail

      • clone

        public java.lang.Object clone()
        Return a FileSet that has the same basedir and same patternsets as this one.
        Overrides:
        clone in class AbstractFileSet
        Returns:
        the cloned fileset
      • iterator

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

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

        public boolean isFilesystemOnly()
        Always returns true.
        Specified by:
        isFilesystemOnly in interface ResourceCollection
        Returns:
        true indicating that all elements will be FileResources.
        Since:
        Ant 1.7