Package org.gradle.api.file
Interface ConfigurableFileCollection
- All Superinterfaces:
- AntBuilderAware,- Buildable,- FileCollection,- HasConfigurableValue,- Iterable<File>,- SupportsConvention
@SupportsKotlinAssignmentOverloading
public interface ConfigurableFileCollection
extends FileCollection, HasConfigurableValue, SupportsConvention
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.
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.gradle.api.file.FileCollectionFileCollection.AntType
- 
Method SummaryModifier and TypeMethodDescriptionRegisters some tasks which build the files of this collection.convention(Iterable<?> paths) 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.convention(Object... paths) 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.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 org.gradle.api.BuildablegetBuildDependenciesMethods inherited from interface org.gradle.api.file.FileCollectionaddToAntBuilder, addToAntBuilder, contains, filter, filter, getAsFileTree, getAsPath, getElements, getFiles, getSingleFile, isEmpty, minus, plusMethods inherited from interface org.gradle.api.provider.HasConfigurableValuedisallowChanges, disallowUnsafeRead, finalizeValue, finalizeValueOnReadMethods inherited from interface java.lang.IterableforEach, iterator, spliteratorMethods inherited from interface org.gradle.api.provider.SupportsConventionunset, unsetConvention
- 
Method Details- 
getFromReturns 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.
 
- 
setFromSets the source paths for this collection. The given paths are evaluated as perProject.files(Object...).- Parameters:
- paths- The paths.- nullvalues are ignored.
 
- 
setFromSets the source paths for this collection. The given paths are evaluated as perProject.files(Object...).- Parameters:
- paths- The paths.- nullvalues are ignored.
 
- 
conventionSpecifies the value to use as the convention (default value) to be used when resolving this file collection, if no source paths are explicitly defined. If, at the time this method is invoked, the set of source paths for this collection is empty, the convention will be used to resolve this file collection.- Parameters:
- paths- The paths.- nullvalues are ignored.
- Returns:
- this collection
- Since:
- 8.8
 
- 
conventionSpecifies the value to use as the convention (default value) to be used when resolving this file collection, if no source paths are explicitly defined. If, at the time this method is invoked, the set of source paths for this collection is empty, the convention will be used to resolve this file collection.- Parameters:
- paths- The paths.- nullvalues are ignored.
- Returns:
- this collection
- Since:
- 8.8
 
- 
fromAdds a set of source paths to this collection. The given paths are evaluated as perProject.files(Object...).- Parameters:
- paths- The files to add.- nullvalues are ignored.
- Returns:
- this
 
- 
getBuiltByReturns the set of tasks which build the files of this collection.- Returns:
- The set. Returns an empty set when there are no such tasks.
 
- 
setBuiltBySets the tasks which build the files of this collection.- Parameters:
- tasks- The tasks. These are evaluated as per- Task.dependsOn(Object...).
- Returns:
- this
 
- 
builtByRegisters some tasks which build the files of this collection.- Parameters:
- tasks- The tasks. These are evaluated as per- Task.dependsOn(Object...).
- Returns:
- this
 
 
-