tags:

views:

20

answers:

1

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. What's the correct way to do this?

+2  A: 

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.

Ted Naleid