Hi Ben,
you're right. There is currently no convention property to define default java_opts or appl_opts.
could you raise a jira for this?

As a workaround, You can modify the generated shell script like this:
----------------
startScripts{
    doLast{
        def bashFile = new File(getOutputDir(),applicationName)
        String bashContent = bashFile.text
bashFile.text = bashContent.replaceFirst("# ${optsEnvironmentVar}.*", "${optsEnvironmentVar} = \"-Xmx512m\"")
    }
}
----------------
This snippet adds -Xmx512m as a OPTS parameter to your application.

regards,
René

Am 25.03.11 15:38, schrieb Benjamin Muschko:
Hi,

I'd like to pre-define the value of JAVA_OPTS in the shell startup script
generated by the application plugin. It looks to me as if there's no
convention property for it yet. Does anybody know how to make this work?

Thanks,

Ben

--
View this message in context: 
http://gradle.1045684.n5.nabble.com/Convention-property-to-set-JAVA-OPTS-in-application-plugin-tp4264223p4264223.html
Sent from the gradle-user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

     http://xircles.codehaus.org/manage_email



--
-----------------------
regards René

rene groeschke
http://www.breskeby.com
@breskeby


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to