FileScanner (groovy 2.4.6 API)
Date: 2016-02-18

Package: org.codehaus.groovy.ant

## [Java] Class FileScanner

- org.codehaus.groovy.ant.FileScanner

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

  Authors:
    James Strachan
    Marc Guillemot

- - ### Constructor Summary

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

  - ### Methods Summary

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

  - ### Inherited Methods Summary

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

    - #### public boolean hasFiles()

    - #### public Iterator iterator()