How do I reference my build process' current directory?

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?

what about:

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

regards, René

Thanks, that works!