Created
October 2, 2015 04:33
-
-
Save gki/1b4026097008c77b3f40 to your computer and use it in GitHub Desktop.
[Gradle] get project path
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
task printpath << { | |
println "current project path: $projectDir" | |
def parentDirPath = parent.projectDir | |
println "parent project path: $parentDirPath" | |
def rootDirPath = rootProject.projectDir | |
println "root project path: $rootDirPath" | |
println "root project path: $rootDir" // this will be same as above. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment