ConfigurableFileCollection

A ConfigurableFileCollection is a mutable FileCollection.

Note: This interface is not intended for implementation by build script or plugin authors.

See also

Create an instance of this as a managed property (preferred).

Create an instance of this manually.

Functions

Link copied to clipboard
abstract fun addToAntBuilder(builder: Any, nodeName: String): Any
abstract fun addToAntBuilder(builder: Any, nodeName: String, type: FileCollection.AntType)
Adds this collection to an Ant task as a nested node.
abstract fun addToAntBuilder(node: Any, childNodeName: String): Any
Link copied to clipboard
Registers some tasks which build the files of this collection.
Link copied to clipboard
abstract fun contains(file: File): Boolean
Determines whether this collection contains the given file.
Link copied to clipboard
abstract fun convention(@Nullable paths: Array<@Nullable Any>): ConfigurableFileCollection
Specifies the value to use as the convention (default value) to be used when resolving this file collection, if no source paths are explicitly defined.
Link copied to clipboard
abstract fun disallowChanges()
Disallows further direct changes to this object.
Link copied to clipboard
abstract fun disallowUnsafeRead()
Disallows reading the value of this object when its value may not yet be available or may still change.
Link copied to clipboard
abstract fun filter(filterClosure: Closure): FileCollection
abstract fun filter(filterSpec: Spec<in File>): FileCollection
Restricts the contents of this collection to those files which match the given criteria.
Link copied to clipboard
abstract fun finalizeValue()
Calculates the final value of this object and disallows further changes to this object.
Link copied to clipboard
abstract fun finalizeValueOnRead()
Requests that the final value of this object be calculated on the next read of the value, if not already known.
Link copied to clipboard
open fun forEach(action: Consumer<in T>)
Link copied to clipboard
abstract fun from(@Nullable paths: Array<@Nullable Any>): ConfigurableFileCollection
Adds a set of source paths to this collection.
Link copied to clipboard
abstract fun getAsFileTree(): FileTree
Converts this collection to a FileTree, if not already.
Link copied to clipboard
abstract fun getAsPath(): String
Returns the contents of this collection as a platform-specific path.
Link copied to clipboard
Returns a dependency which contains the tasks which build this artifact.
Link copied to clipboard
abstract fun getBuiltBy(): Set<Any>
Returns the set of tasks which build the files of this collection.
Link copied to clipboard
Returns the contents of this file collection as a Provider of FileSystemLocation instances.
Link copied to clipboard
abstract fun getFiles(): Set<File>
Returns the contents of this collection as a Set.
Link copied to clipboard
abstract fun getFrom(): Set<Any>
Returns the set of source paths for this collection.
Link copied to clipboard
abstract fun getSingleFile(): File
Returns the content of this collection, asserting it contains exactly one file.
Link copied to clipboard
abstract fun isEmpty(): Boolean
Returns true if this collection is empty.
Link copied to clipboard
abstract fun iterator(): Iterator<T>
Link copied to clipboard
abstract fun minus(collection: FileCollection): FileCollection
Returns a FileCollection which contains the difference between this collection and the given collection.
Link copied to clipboard
abstract fun plus(collection: FileCollection): FileCollection
Returns a FileCollection which contains the union of this collection and the given collection.
Link copied to clipboard
Sets the tasks which build the files of this collection.
Link copied to clipboard
abstract fun setFrom(paths: Iterable<out Any>)
abstract fun setFrom(@Nullable paths: Array<@Nullable Any>)
Sets the source paths for this collection.
Link copied to clipboard
Link copied to clipboard
abstract fun unset(): SupportsConvention
Unsets this object's explicit value, allowing the convention to be selected when evaluating this object's value.
Link copied to clipboard
Unsets this object's convention value.