One option is to use the wrapper, and edit the wrapper script to add in these options.
On 18/10/2011, at 8:06 PM, davide.cavestro wrote: > Hi guys, > I need to control the maximum heap size for my gradle builds on jenkins, and > it's not so easy to specify it the usual way (through the environment > variable GRADLE_OPTS or JAVA_OPTS). > So I'd like to pass something like -Xmx1024m as a gradle launch parameter, > but I've not found yet the right way. > So is there any way to pass JVM options > Any idea? > > Cheers > Davide > > -- > View this message in context: > http://gradle.1045684.n5.nabble.com/Is-there-any-way-to-pass-gradle-JVM-options-from-command-line-without-GRADLE-OPTS-env-var-tp4912969p4912969.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 > > -- Adam Murdoch Gradle Co-founder http://www.gradle.org VP of Engineering, Gradleware Inc. - Gradle Training, Support, Consulting http://www.gradleware.com
