grails / grails-gradle-plugin-archived

142 stars 40 forks source link

Plugin doesn't pass the environment variables to Grails #36

Open greggigon opened 11 years ago

greggigon commented 11 years ago

I have environment variable GRAILS_AGENT_CACHE_DIR pointing to a specific location. When I run grails CLI to run any commands, the .slcache cache folder is created where the GRAILS_AGENT_CACHE_DIR is pointing to. Expected behavior.

When doing the same via gradlew grails-run-app the .slcache folder is created in the default location (which $USER_HOME/.grails/.slcache)

ldaley commented 10 years ago

GrailsTask exposes a jvmOptions() hook that you can use to configure how the process is forked. You'll have to configure this manually.

But really, the plugin should just provide a decent default here.

johnrengelman commented 10 years ago

By decent default do you mean something inside build/? It seems that it is defaulting to the same location that Grails does unless you override it via the jvmOptions hook.