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

## org.gradle.api.file
[Java] Interface ConfigurableFileCollection

    org.gradle.api.Buildable
      org.gradle.api.tasks.AntBuilderAware
          org.gradle.api.file.FileCollection
              org.gradle.api.file.ConfigurableFileCollection

All Superinterfaces:
  Buildable, AntBuilderAware, FileCollection

    public interface ConfigurableFileCollection
    extends FileCollection

A `ConfigurableFileCollection` is a mutable `FileCollection`.

You can obtain an instance of `ConfigurableFileCollection` by calling Project.files

Method Summary
`ConfigurableFileCollection` | `builtBy(java.lang.Object tasks)` Registers some tasks which build the files of this collection.
`ConfigurableFileCollection` | `from(java.lang.Object paths)` Adds a set of files to this collection.
`java.util.Set` | `getBuiltBy()` Returns the set of tasks which build the files of this collection.
`ConfigurableFileCollection` | `setBuiltBy(java.lang.Iterable tasks)` Sets the tasks which build the files of this collection.

Methods inherited from interface FileCollection
add, addToAntBuilder, addToAntBuilder, asType, contains, filter, filter, getAsFileTree, getAsPath, getFiles, getSingleFile, isEmpty, minus, plus, stopExecutionIfEmpty

Methods inherited from interface Buildable
getBuildDependencies

Methods inherited from interface AntBuilderAware
addToAntBuilder

Methods inherited from interface java.lang.Iterable
java.lang.Iterable#iterator()

Methods inherited from class java.lang.Object
java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString()

Method Detail

### builtBy

    public ConfigurableFileCollection builtBy(java.lang.Object tasks)

  Registers some tasks which build the files of this collection.
  Parameters:
    `tasks` - The tasks. These are evaluated as for Task.dependsOn.
  Returns:
    this

### from

    public ConfigurableFileCollection from(java.lang.Object paths)

  Adds a set of files to this collection. The given paths are evaluated as for Project.files.
  Parameters:
    `paths` - The files to add.
  Returns:
    this

### getBuiltBy

    public java.util.Set getBuiltBy()

  Returns the set of tasks which build the files of this collection.
  Returns:
    The set. Returns an empty set when there are no such tasks.

### setBuiltBy

    public ConfigurableFileCollection setBuiltBy(java.lang.Iterable tasks)

  Sets the tasks which build the files of this collection.
  Parameters:
    `tasks` - The tasks. These are evaluated as for Task.dependsOn.
  Returns:
    this

Groovy Documentation