In a unix environment, I want the .grails folder to go somewhere other than the default location, and I want to set this from the command line... I believe the command should be something like:
grails -Duser.home=/x/y/z run-app
but this doesn't seem to be working. Wh开发者_开发知识库at's the correct way to do this?
The command line switch you're looking for is:
-Dgrails.work.dir
I wrote up a blog post last month that has a script to have a unique grails working directory based on the mercurial branch that you're working in (so you can easily switch between them without getting weird compilation errors). You might find the script useful.
精彩评论