@Incubating public interface ProjectLayout
javax.inject.Inject. It is also available via Project.getLayout().| Type | Property and Description |
|---|---|
DirectoryProperty |
directory
Creates a new
DirectoryProperty that uses the project directory to resolve paths, if required. |
RegularFileProperty |
file
Creates a new
RegularFileProperty that uses the project directory to resolve paths, if required. |
| Modifier and Type | Method and Description |
|---|---|
DirectoryProperty |
directoryProperty()
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. |
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. |
DirectoryProperty that uses the project directory to resolve paths, if required. The property has no initial value.RegularFileProperty that uses the project directory to resolve paths, if required. The property has no initial value.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.@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.Provider<RegularFile> file(Provider<File> file)
RegularFile provider whose location is calculated from the given Provider.