본문 바로가기
java

gradle project 경로 확인

by 후린트 2022. 11. 23.
반응형

gradle 설정시에 proejct 경로를 확인하기 위해서 기록

 

println  "Root project:   ${project.rootProject}";
Root project:   root project 'karint-io'

println  "  rootDir:      ${project.rootDir}"
rootDir:      C:\work\source\git\karint-io

println  "  projectDir:   ${project.projectDir}";
projectDir:   C:\work\source\git\karint-io\karint-web

println("project.getBuildDir() : ${project.getBuildDir()}")
project.getBuildDir() : C:\work\source\git\karint-io\karint-web\target

println("sourceSets.main.output.resourcesDir : ${sourceSets.main.output.resourcesDir}")
sourceSets.main.output.resourcesDir : C:\work\source\git\karint-io\karint-web\target\resources\main

println("sourceSets.main.resources.srcDirs  : ${sourceSets.main.resources.srcDirs}");
sourceSets.main.resources.srcDirs  : [C:\work\source\git\karint-io\karint-web\src\main\resources, C:\work\source\git\karint-io\karint-web-resources]

 

반응형