Gradle Project Properties TODEPLETE: Difference between revisions
Jump to navigation
Jump to search
Line 37: | Line 37: | ||
====parent==== | ====parent==== | ||
===project=== | ====project==== | ||
The Project instance. | The Project instance. | ||
===projectDir=== | ====projectDir==== | ||
The File instance corresponding to the directory containing the build script. | The File instance corresponding to the directory containing the build script. | ||
===path=== | ====path==== | ||
A String containing the absolute path of the project. The path of the root project is ":" | A String containing the absolute path of the project. The path of the root project is ":" | ||
===description=== | ====description==== | ||
A String containing the description for the project. | A String containing the description for the project. | ||
===displayName=== | ====displayName==== | ||
===buildDir=== | ====buildDir==== | ||
A File representing <''projectDir''>/build. | A File representing <''projectDir''>/build. | ||
===buildFile=== | ====buildFile==== | ||
===rootDir=== | ====rootDir==== | ||
===rootProject=== | ====rootProject==== | ||
====rootProject.name==== | =====rootProject.name===== | ||
===state=== | ====state==== | ||
===status=== | ====status==== | ||
====properties==== | ====properties==== | ||
The property map. | The property map. |
Revision as of 19:46, 4 June 2018
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
project
The Project instance.
projectDir
The File instance corresponding to the directory containing the build script.
path
A String containing the absolute path of the project. The path of the root project is ":"
description
A String containing the description for the project.
displayName
buildDir
A File representing <projectDir>/build.
buildFile
rootDir
rootProject
rootProject.name
state
status
properties
The property map.