Package org.gradle.api.file
Schnittstelle FileSystemLocationProperty<T extends FileSystemLocation>
- Typparameter:
T- The type of location.
- Alle Superschnittstellen:
HasConfigurableValue,Property<T>,Provider<T>,SupportsConvention
- Alle bekannten Unterschnittstellen:
DirectoryProperty,RegularFileProperty
Represents some element of the file system. A file system element has two parts: its location and its content. A file system element's content, may be the output of a task
or tasks. This property object keeps track of both the location and the task or tasks that produce the content of the element.
Note: This interface is not intended for implementation by build script or plugin authors.
- Seit:
- 5.6
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfileProvider(Provider<File> provider) Sets the location of this file, using aFileinstance.Views the location of this file as aFile.Returns the location of the file system element, and discards details of the task that produces its content.voidSets the location of this file, using aFileinstance.Von Schnittstelle geerbte Methoden org.gradle.api.provider.HasConfigurableValue
disallowChanges, disallowUnsafeRead, finalizeValueOnReadVon Schnittstelle geerbte Methoden org.gradle.api.provider.Property
convention, convention, finalizeValue, set, set, unset, unsetConvention, value, value
-
Methodendetails
-
getAsFile
Views the location of this file as aFile. -
set
-
fileValue
Sets the location of this file, using aFileinstance.Fileinstances with relative paths are resolved relative to the project directory of the project that owns this property instance.This method is the same as
set(File)but allows method chaining.- Gibt zurück:
- this
- Seit:
- 6.0
-
fileProvider
Sets the location of this file, using aFileProviderinstance.Fileinstances with relative paths are resolved relative to the project directory of the project that owns this property instance.- Gibt zurück:
- this
- Seit:
- 6.0
-
getLocationOnly
Returns the location of the file system element, and discards details of the task that produces its content. This allows the location, or a value derived from it, to be used as an input to some other task without implying any dependency on the producing task. This should only be used when the task does, in fact, not use the content of this file system element.- Seit:
- 5.6
-