Package: groovy.ant

## [Groovy] Class FileNameFinder

- groovy.ant.FileNameFinder

- All Implemented Interfaces and Traits:
    IFileNameFinder

      class FileNameFinder
      extends Object
      implements IFileNameFinder

  Find files according to a base directory and an includes and excludes pattern. The include and exclude patterns conform to Ant's fileset pattern conventions.

- - ### Constructor Summary

    Constructors
    Constructor and description
    `FileNameFinder()`

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `List<String>` | `getFileNames(String basedir, String pattern)` Finds files below the supplied base directory that match the given include pattern.
    `` | `List<String>` | `getFileNames(String basedir, String pattern, String excludesPattern)` Finds files below the supplied base directory that match the include pattern and avoid the exclude pattern.
    `` | `List<String>` | `getFileNames(Map args)` Finds files using the supplied Ant `fileset` arguments.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Object` | `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### FileNameFinder()

  - ### Method Detail

    - #### List<String> getFileNames(String basedir, String pattern)

      Finds files below the supplied base directory that match the given include pattern.

      Parameters:
        `basedir` - the directory to scan
        `pattern` - the Ant-style include pattern
      Returns:
        the absolute paths of matching files

    - #### List<String> getFileNames(String basedir, String pattern, String excludesPattern)

      Finds files below the supplied base directory that match the include pattern and avoid the exclude pattern.

      Parameters:
        `basedir` - the directory to scan
        `pattern` - the Ant-style include pattern
        `excludesPattern` - the Ant-style exclude pattern
      Returns:
        the absolute paths of matching files

    - #### List<String> getFileNames(Map args)

      Finds files using the supplied Ant `fileset` arguments.

      Parameters:
        `args` - the arguments passed to the underlying Ant `fileset`
      Returns:
        the absolute paths of matching files