Movatterモバイル変換


[0]ホーム

URL:


ProjectLayout

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 withjavax.inject.Inject. It is also available viaProject.getLayout().

Note: This interface is not intended for implementation by build script or plugin authors.

Properties

PropertyDescription
buildDirectory

The build directory for the project.

projectDirectory

The project directory.

Methods

MethodDescription
dir(file)

Creates aDirectory provider whose location is calculated from the givenProvider.

file(file)

Creates aRegularFile provider whose location is calculated from the givenProvider.

files(paths)

Creates a read-onlyFileCollection containing the given files, as defined byProject.files(java.lang.Object[]).

Script blocks

No script blocks

Property details

DirectoryPropertybuildDirectory

The build directory for the project.

DirectoryprojectDirectory (read-only)

The project directory.

Method details

Creates aDirectory provider whose location is calculated from the givenProvider.

File system locations based on relative paths will beresolved against this layout's reference location, as defined byProjectLayout.getProjectDirectory().

Creates aRegularFile provider whose location is calculated from the givenProvider.

File system locations based on relative paths will beresolved against this layout's reference location, as defined byProjectLayout.getProjectDirectory().

FileCollectionfiles(Object... paths)

Creates a read-onlyFileCollection containing the given files, as defined byProject.files(java.lang.Object[]).

This method can also be used to create an empty collection, but the collection may not be mutated later.

©Gradle Inc. All rights reserved.
gradle
Careers |Privacy |Terms of Service |Contact

[8]ページ先頭

©2009-2025 Movatter.jp