How do I reference my build process' current directory?


(tinkerer.tech) #1

I need to reference my build process’ current directory (ie. where the gradle/w command was issued from), not my current project dir (buildDir) or the root project dir (rootDir). Is there an easy way?


(René Groeschke) #2

what about:

task printProcessdir << {
    println new File(".").absolutePath
}

regards, René


(tinkerer.tech) #3

Thanks, that works!