Gradle Project Properties TODEPLETE: Difference between revisions
Jump to navigation
Jump to search
Line 106: | Line 106: | ||
Absolute path. | Absolute path. | ||
====projectDir==== | ====projectDir==== | ||
The File instance corresponding to the directory containing the build script. | |||
The File instance corresponding to the directory containing the build script <font color=darkgray>the property is referenced in.</font> | |||
====buildDir==== | ====buildDir==== | ||
A File representing <''projectDir''>/build. | A File representing <''projectDir''>/build. |
Revision as of 08:15, 23 February 2019
Internal
Overview
The current project properties can be displayed with:
task displayProjectProperties {
doLast() {
for(Map.Entry p: project.getProperties()) {
println p;
}
}
}
Property List
name
group
version
parent
rootProject
Maintains the reference to the root project's org.gradle.api.internal.project.DefaultProject_Decorated instance. TODO: more details here, especially about rootProject.name.
rootProject.name
path
A String containing the absolute path of the project. The path of the root project is ":"
path=:
childProjects
projectPath
project
The Project instance.
description
A String containing the description for the project.
displayName
displayName=root project 'Playground RECON Serialization/Deserialization'
buildFile
state
state=project state 'EXECUTED'
status
status=integration
properties
The property map.
archivesBaseName
Defaults to name.
subprojects
parentIdentifier
depth
buildFile
buildPath
Directories
buildDir
rootDir
The absolute path of the project root directory.
testResultsDirName
Name of the relative directory.
testResultsDir
Absolute path.
projectDir
The File instance corresponding to the directory containing the build script the property is referenced in.
buildDir
A File representing <projectDir>/build.