@Incubating public interface ProjectLayout
javax.inject.Inject
. It is also available via Project.getLayout()
.Modifier and Type | Method | Description |
---|---|---|
DirectoryProperty |
directoryProperty() |
Creates a new
DirectoryProperty that uses the project directory to resolve paths, if required. |
DirectoryProperty |
directoryProperty(Provider<? extends Directory> initialProvider) |
Creates a new
DirectoryProperty that uses the project directory to resolve paths, if required. |
Provider<RegularFile> |
file(Provider<File> file) |
Creates a
RegularFile provider whose location is calculated from the given Provider . |
RegularFileProperty |
fileProperty() |
Creates a new
RegularFileProperty that uses the project directory to resolve paths, if required. |
RegularFileProperty |
fileProperty(Provider<? extends RegularFile> initialProvider) |
Creates a new
RegularFileProperty that uses the project directory to resolve paths, if required. |
DirectoryProperty |
getBuildDirectory() |
Returns the build directory for the project.
|
Directory |
getProjectDirectory() |
Returns the project directory.
|
DirectoryVar |
newDirectoryVar() |
Deprecated.
Use
directoryProperty() instead. |
RegularFileVar |
newFileVar() |
Deprecated.
Use
fileProperty() instead. |
Directory getProjectDirectory()
DirectoryProperty getBuildDirectory()
@Deprecated DirectoryVar newDirectoryVar()
directoryProperty()
instead.DirectoryVar
that uses the project directory to resolve paths, if required. The var has no initial value.DirectoryProperty directoryProperty()
DirectoryProperty
that uses the project directory to resolve paths, if required. The property has no initial value.DirectoryProperty directoryProperty(Provider<? extends Directory> initialProvider)
DirectoryProperty
that uses the project directory to resolve paths, if required. The property has the initial provider specified.initialProvider
- initial provider for the property@Deprecated RegularFileVar newFileVar()
fileProperty()
instead.RegularFileVar
that uses the project directory to resolve paths, if required. The var has no initial value.RegularFileProperty fileProperty()
RegularFileProperty
that uses the project directory to resolve paths, if required. The property has no initial value.RegularFileProperty fileProperty(Provider<? extends RegularFile> initialProvider)
RegularFileProperty
that uses the project directory to resolve paths, if required. The property has the initial provider specified.initialProvider
- initial provider for the propertyProvider<RegularFile> file(Provider<File> file)
RegularFile
provider whose location is calculated from the given Provider
.