Interface ConfigurableFileCollection
- All Superinterfaces:
AntBuilderAware, Buildable, FileCollection, Iterable<File>
A ConfigurableFileCollection is a mutable FileCollection.
You can obtain an instance of ConfigurableFileCollection by calling Project.files(Object...)
-
Nested Class Summary
Nested classes/interfaces inherited from interface FileCollection
FileCollection.AntType -
Method Summary
Modifier and TypeMethodDescriptionRegisters some tasks which build the files of this collection.Adds a set of source paths to this collection.Returns the set of tasks which build the files of this collection.getFrom()Returns the set of source paths for this collection.setBuiltBy(Iterable<?> tasks) Sets the tasks which build the files of this collection.voidSets the source paths for this collection.voidSets the source paths for this collection.Methods inherited from interface Buildable
getBuildDependenciesMethods inherited from interface FileCollection
add, addToAntBuilder, addToAntBuilder, asType, contains, filter, filter, getAsFileTree, getAsPath, getFiles, getSingleFile, isEmpty, minus, plus, stopExecutionIfEmptyMethods inherited from interface Iterable
forEach, iterator, spliterator
-
Method Details
-
getFrom
Returns the set of source paths for this collection. The paths are evaluated as perProject.files(Object...).- Returns:
- The set of source paths. Returns an empty set if none.
-
setFrom
Sets the source paths for this collection. The given paths are evaluated as perProject.files(Object...).- Parameters:
paths- The paths.
-
setFrom
Sets the source paths for this collection. The given paths are evaluated as perProject.files(Object...).- Parameters:
paths- The paths.
-
from
Adds a set of source paths to this collection. The given paths are evaluated as perProject.files(Object...).- Parameters:
paths- The files to add.- Returns:
- this
-
getBuiltBy
-
setBuiltBy
Sets the tasks which build the files of this collection.- Parameters:
tasks- The tasks. These are evaluated as perTask.dependsOn(Object...).- Returns:
- this
-
builtBy
Registers some tasks which build the files of this collection.- Parameters:
tasks- The tasks. These are evaluated as perTask.dependsOn(Object...).- Returns:
- this
-