api / org.gradle.api.file / ProjectLayout / configurableFiles

configurableFiles

abstract fun configurableFiles(vararg paths: Any): ConfigurableFileCollection

Returns a ConfigurableFileCollection containing the given files. You can pass any of the following types to this method:

The returned file collection is lazy, so that the paths are evaluated only when the contents of the file collection are queried. The file collection is also live, so that it evaluates the above each time the contents of the collection is queried.

The returned file collection maintains the iteration order of the supplied paths.

The returned file collection maintains the details of the tasks that produce the files, so that these tasks are executed if this file collection is used as an input to some task.

This method can also be used to create an empty collection, which can later be mutated to add elements.

Parameters

paths - The paths to the files. May be empty.

Return
The file collection. Never returns null.

Since
4.8