gwt-gradle-plugin icon indicating copy to clipboard operation
gwt-gradle-plugin copied to clipboard

Compiler Flags for GWT and VM

Open confile opened this issue 10 years ago • 4 comments

I want to set the following GWT arguments:

-superDevMode
-startupUrl
-codeServerPort 9997
-bindAddress 192.168.178.26

and for the Java VM I would like to set:

-XstartOnFirstThread

Is there an option to set these arguments?

confile avatar Feb 11 '15 00:02 confile

The first part of my question is solved by: https://github.com/steffenschaefer/gwt-gradle-plugin/issues/55

The second part about the Java VM args is still open.

confile avatar Feb 11 '15 02:02 confile

I am also looking for a way to add compiler or jvm arguments for the compileGwt task. I need to do this in order to use the project lombok library with GWT client side code. However, I cannot find a way to do this using the Gradle plugin.

Would this be possible by making the AbstractGwtActionTask.args(...) and AbstractGwtActionTask.jvmArgs(...) methods public?

rmanders avatar Mar 20 '15 21:03 rmanders

I just created a pull request #92 that allows setting additional JVM args within the gwt configuration section.

I'm new to Gradle plugin development, so I'm not quite how sound the implementation is. Hopefully it works for you.

recunius avatar Sep 29 '15 18:09 recunius

tasks.withType(de.richsource.gradle.plugins.gwt.AbstractGwtActionTask) {
    jvmArgs "-Xss1M"
}

JLLeitschuh avatar Nov 22 '16 00:11 JLLeitschuh