FileScanner (Groovy 4.0.15)

Package: org.codehaus.groovy.ant

## [Java] Class FileScanner

- org.codehaus.groovy.ant.FileScanner

-     public class FileScanner
      extends Task

  `FileScanner` is a bean which allows the iteration over a number of files from a collection of FileSet instances.

- - ### Constructor Summary

    Constructors
    Constructor and description
    `FileScanner()`
    `FileScanner(Project project)`

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public void` | `addFileset(FileSet set)` Adds a set of files (nested fileset attribute).
    `` | `public void` | `clear()` Clears any file sets that have been added to this scanner
    `` | `public Iterator<File>` | `directories()`
    `` | `public boolean` | `hasFiles()`
    `` | `public Iterator<File>` | `iterator()`

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Task` | `log, log, log, log, init, execute, getTaskName, setTaskType, getTaskType, setTaskName, getOwningTarget, setOwningTarget, maybeConfigure, getRuntimeConfigurableWrapper, setRuntimeConfigurableWrapper, reconfigure, bindToOwner, perform, clone, getLocation, getDescription, setDescription, setProject, setLocation, getProject, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll`

- - ### Constructor Detail

    - #### public FileScanner()

    - #### public FileScanner(Project project)

  - ### Method Detail

    - #### public void addFileset(FileSet set)

      Adds a set of files (nested fileset attribute).

    - #### public void clear()

      Clears any file sets that have been added to this scanner

    - #### public Iterator<File> directories()

    - #### public boolean hasFiles()

    - #### public Iterator<File> iterator()