GWT 2.7 gwt.compile.args leads to "Unknown argument:" error

598 views
Skip to first unread message

confile

unread,
Oct 23, 2014, 7:27:42 PM10/23/14
to grail...@googlegroups.com
I use the following configuration: 

build ":extended-dependency-manager:0.5.5"
compile ":gwt:1.0", {
transitive=false
}

gwt.compile.args = {
arg(value: '-strict')
arg(value: "-XjsInteropMode JS")
}

gwt {
version="2.7.0-beta1"
gin.version = '2.1.2' 

}

But when I do grails dev war I get the following error:

Unknown argument: -XjsInteropMode JS
  | Google Web Toolkit 2.7.0-beta1



When I use -XjsInteropMode JS as compiler parameter in a standalone GWT 2.7 project it works fine.

How can I make it working with gwt.compile.args?

confile

unread,
Oct 24, 2014, 3:36:26 AM10/24/14
to grail...@googlegroups.com
It works this way: 

arg(value: '-XjsInteropMode')
arg(value: 'JS')

Nathan Dunn

unread,
Dec 3, 2014, 6:46:35 PM12/3/14
to grail...@googlegroups.com
Is this with grails 2.4?  I have to explicitly include resources or comment it out in the plugin.  Either way I get the following error:

gwt.compile.args = {
arg(value: '-strict')
arg(value: "-XjsInteropMode")
        arg(value: "JS")
}

gwt {
version="2.7.0"
gin.version = '2.1.2' 

}

depencencies{
...
compile 'asm:asm:3.1'
...
}

plugins{
... 
  runtime ":resources:1.2.13"
  build ":extended-dependency-manager:0.5.5"

compile ":gwt:1.0" , {
transitive=false
}
... 
}










 | Caused by: java.lang.ClassNotFoundException: org.objectweb.asm.MethodVisitor

  | at java.net.URLClassLoader$1.run(URLClassLoader.java:366)

  | at java.net.URLClassLoader$1.run(URLClassLoader.java:355)

  | at java.security.AccessController.doPrivileged(Native Method)

  | at java.net.URLClassLoader.findClass(URLClassLoader.java:354)

  | at java.lang.ClassLoader.loadClass(ClassLoader.java:425)

  | at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)

  | at java.lang.ClassLoader.loadClass(ClassLoader.java:358)

  | ... 63 more

logs.txt
Reply all
Reply to author
Forward
0 new messages