Overview | Package | Class | Deprecated | Index | Help
| Groovy Documentation
| FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.gradle.api.internal.tasks.copy
Class BreadthFirstDirectoryWalker

    java.lang.Object
      org.gradle.api.internal.tasks.copy.BreadthFirstDirectoryWalker

All Implemented Interfaces:
  DirectoryWalker

    class BreadthFirstDirectoryWalker

Directory walker supporting Specs for includes and excludes. The file system is traversed breadth first - all files in a directory will be visited before any child directory is visited. A file or directory will only be visited if it matches all includes and no excludes.

author:
  Steve Appling

Constructor Summary
`BreadthFirstDirectoryWalker(boolean caseSensitive, FileVisitor visitor)`

Method Summary
`void` | `addExcludes(List excludes)`
`void` | `addIncludes(List includes)`
`boolean` | `isAllowed(RelativePath path)`
`void` | `start(File startFile)` Process the specified file or directory.

Methods inherited from class java.lang.Object
hashCode, getClass, equals, toString, wait, wait, wait, notify, notifyAll

Constructor Detail

### BreadthFirstDirectoryWalker

    public BreadthFirstDirectoryWalker(boolean caseSensitive, FileVisitor visitor)

Method Detail

### addExcludes

    public void addExcludes(List excludes)

### addIncludes

    public void addIncludes(List includes)

### isAllowed

    public boolean isAllowed(RelativePath path)

### start

    public void start(File startFile)

  Process the specified file or directory. Note that the startFile parameter may be either a directory or a file. If it is a directory, then it's contents (but not the directory itself) will be checked with isAllowed and notified to the listener. If it is a file, the file will be checked and notified.
  param:
    startFile
  throws:
    IOException

Groovy Documentation