AntBuilderAware
, Buildable
, FileCollection
, HasConfigurableValue
, java.lang.Iterable<java.io.File>
@SupportsKotlinAssignmentOverloading public interface ConfigurableFileCollection extends FileCollection, HasConfigurableValue
A ConfigurableFileCollection
is a mutable FileCollection
.
You can obtain an instance of ConfigurableFileCollection
by calling Project.files(Object...)
or ObjectFactory.fileCollection()
.
Note: This interface is not intended for implementation by build script or plugin authors.
FileCollection.AntType
Modifier and Type | Method | Description |
---|---|---|
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 source paths to this collection.
|
java.util.Set<java.lang.Object> |
getBuiltBy() |
Returns the set of tasks which build the files of this collection.
|
java.util.Set<java.lang.Object> |
getFrom() |
Returns the set of source paths for this collection.
|
ConfigurableFileCollection |
setBuiltBy(java.lang.Iterable<?> tasks) |
Sets the tasks which build the files of this collection.
|
void |
setFrom(java.lang.Iterable<?> paths) |
Sets the source paths for this collection.
|
void |
setFrom(java.lang.Object... paths) |
Sets the source paths for this collection.
|
getBuildDependencies
addToAntBuilder, addToAntBuilder, contains, filter, filter, getAsFileTree, getAsPath, getElements, getFiles, getSingleFile, isEmpty, minus, plus
disallowChanges, disallowUnsafeRead, finalizeValue, finalizeValueOnRead
java.util.Set<java.lang.Object> getFrom()
Project.files(Object...)
.void setFrom(java.lang.Iterable<?> paths)
Project.files(Object...)
.paths
- The paths.void setFrom(java.lang.Object... paths)
Project.files(Object...)
.paths
- The paths.ConfigurableFileCollection from(java.lang.Object... paths)
Project.files(Object...)
.paths
- The files to add.java.util.Set<java.lang.Object> getBuiltBy()
ConfigurableFileCollection setBuiltBy(java.lang.Iterable<?> tasks)
tasks
- The tasks. These are evaluated as per Task.dependsOn(Object...)
.ConfigurableFileCollection builtBy(java.lang.Object... tasks)
tasks
- The tasks. These are evaluated as per Task.dependsOn(Object...)
.