开发者

How do I override the default location for the .grails folder from the command line?

开发者 https://www.devze.com 2023-01-04 11:27 出处:网络
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:

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消