What determines the location of the .grails directory?

grails

Solution

The `grailsWorkDir` property controls the location. You can change the value in the BuildConfig.groovy file.

See the Grails documentation section 5.5 Customising the build:

There is an issue with Java and the `user.home` property in Windows. See this SO question for more details:

Java user.home is being set to %userprofile% and not being resolved

Problem

I want to change the location of the .grails directory. I have read about using working directories, but this is not what I want. For some reason my .grails directory gets put in the "Administrator" user folder instead of in my user folder. How do I correct this?

Original source

Related problems