Package org.gradle.api.file
Schnittstelle ConfigurableFileCollection
- Alle Superschnittstellen:
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.
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.gradle.api.file.FileCollection
FileCollection.AntType -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungRegisters 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.Von Schnittstelle geerbte Methoden org.gradle.api.Buildable
getBuildDependenciesVon Schnittstelle geerbte Methoden org.gradle.api.file.FileCollection
addToAntBuilder, addToAntBuilder, contains, filter, filter, getAsFileTree, getAsPath, getElements, getFiles, getSingleFile, isEmpty, minus, plusVon Schnittstelle geerbte Methoden org.gradle.api.provider.HasConfigurableValue
disallowChanges, disallowUnsafeRead, finalizeValue, finalizeValueOnReadVon Schnittstelle geerbte Methoden java.lang.Iterable
forEach, iterator, spliteratorVon Schnittstelle geerbte Methoden org.gradle.api.provider.SupportsConvention
unset, unsetConvention
-
Methodendetails
-
getFrom
Returns the set of source paths for this collection. The paths are evaluated as perProject.files(Object...).- Gibt zurück:
- 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...).- Parameter:
paths- The paths.nullvalues are ignored.
-
setFrom
Sets the source paths for this collection. The given paths are evaluated as perProject.files(Object...).- Parameter:
paths- The paths.nullvalues are ignored.
-
convention
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. 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.- Parameter:
paths- The paths.nullvalues are ignored.- Gibt zurück:
- this collection
- Seit:
- 8.8
-
convention
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. 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.- Parameter:
paths- The paths.nullvalues are ignored.- Gibt zurück:
- this collection
- Seit:
- 8.8
-
from
Adds a set of source paths to this collection. The given paths are evaluated as perProject.files(Object...).- Parameter:
paths- The files to add.nullvalues are ignored.- Gibt zurück:
- this
-
getBuiltBy
Returns the set of tasks which build the files of this collection.- Gibt zurück:
- The set. Returns an empty set when there are no such tasks.
-
setBuiltBy
Sets the tasks which build the files of this collection.- Parameter:
tasks- The tasks. These are evaluated as perTask.dependsOn(Object...).- Gibt zurück:
- this
-
builtBy
Registers some tasks which build the files of this collection.- Parameter:
tasks- The tasks. These are evaluated as perTask.dependsOn(Object...).- Gibt zurück:
- this
-