tags:

views:

110

answers:

1

I have some code that used to compile with GWT 1.x and link into a single script. Now with GWT 2.0.x (GWT 2.0.3 specifically), the compiler compiles 6 browser-specific permutations and then the single-script linker refuses to link.

I don't use GWT widgets. I only use com.google.gwt.user.client.Timer, com.google.gwt.core.client.JavaScriptObject/EntryPoint/JavaScriptException from GWT core and java.lang and java.util emulation.

How do I tell GWT to compile the core stuff without browser-specific permutations?

+3  A: 

Hmm... you can set in .gwt.xml to compile your module only for one browser. gwt.core is not your module, but maybe if you set module that is using it to only one browser it compiles modules that it need also only for this one browser?

To tell GWT to compile module for one browser, set in your .gwt.xml e.g. for firefox:

<set-property name="user.agent" value="gecko1_8"></set-property>
amorfis