Application Plugin: pass APP_HOME env as system property to the application


(david koch) #1

Hello, currently I’ve no idea how to pass the %APP_HOME% directory to the application.

My first intention was to set the defaultJvmOpts property in the build.gradle like so: defaultJvmOpts=%APP_HOME%

But unfortunately it the DEFAULT_JVM_OPTS is defined before APP_HOME and it would work only on windows. Substitution on Unix is with $ instead %%. Also the APP_HOME is not defined in the unix script at all.

Is there a simple way to pass the application home variable to the app?

thanks, david