abstract fun files(vararg paths: Any): ConfigurableFileCollection
Returns a ConfigurableFileCollection containing the given files. This works as described for
. Relative paths are resolved relative to the directory containing this script.
paths
- The paths to the files. May be empty.
Return
The file collection. Never returns null.
abstract fun files(paths: Any, configureClosure: Closure<Any>): ConfigurableFileCollection
Creates a new ConfigurableFileCollection
using the given paths. The file collection is configured using the given closure. This method works as described for Project#files(Object, groovy.lang.Closure)
. Relative paths are resolved relative to the directory containing this script.
paths
- The contents of the file collection. Evaluated as per #files(Object...)
.
configureClosure
- The closure to use to configure the file collection.
Return
the configured file tree. Never returns null.