GRAILS_OPTS environment variable not used


Under Windows (XP) I'm using the GRAILS_OPTS environment variable to set the .grails and .ivy2 directories:\Local\grails\.grails -Divy.default.ivy.user.dir=C:\Local\grails\.ivy2

(I'm doing this b/c my user_home directory is a share drive which significantly impacts performance)

When I use Grails from IntelliJ it ignores this and just uses the default directories in my user home.  This appears to be happening because IntelliJ does not use the grails execution scripts / batch files provided in the grails installation, but instead calls java directly.  

Is there a way I can either get IntelliJ to use the GRAILS_OPTS variable, add these options to the Grails execution line, or change some setting in IntelliJ to change the location of these directories?

Alternatively, if I could adjust the location of user_home in IntelliJ, that would work too.


IntelliJ 10.5.1
   build IU-107-322

1 comment
Comment actions Permalink

It's incorrect behaviour, I've created issue in bug tracker.

As workaround you can specify '' and 'ivy.default.ivy.user.dir' in BuildConfig, example:"C:\Local\grails\.grails"
System.setProperty("ivy.default.ivy.user.dir", "C:\Local\grails\.ivy2")

Please sign in to leave a comment.