Table of Contents
| API Documentation: | ProjectLayout |
|---|
Provides access to several important locations for a project.
An instance of this type can be injected into a task, plugin or other object by annotating a public constructor or method with javax.inject.Inject. It is also available via Project.getLayout().
| Property | Description |
buildDirectory | The build directory for the project. |
projectDirectory | The project directory. |
| Method | Description |
dir(file) | Creates a |
file(file) | Creates a |
files(paths) | Creates a read-only |
DirectoryProperty buildDirectory
The build directory for the project.
Directory projectDirectory (read-only)
The project directory.
Provider<RegularFile> file(Provider<File> file)
Provider<RegularFile>Provider<File>Creates a RegularFile provider whose location is calculated from the given Provider.
FileCollection files(Object... paths)
Object...Creates a read-only FileCollection containing the given files, as defined by Project.files(java.lang.Object[]).
This method can also be used to create an empty collection, but the collection may not be mutated later.