02 Jul 2011

Various options of GWT compiler

compiler is somewhat slow, here are some options I used to make it faster.

build.xml:

<property name="gwt.args"  value="-compileReport-localWorkers 4
                              -XdisableClassMetadata -XdisableCastChecking" />

gwt.xml

<set-property name="user.agent" value="safari,gecko_8"/>
   <!--only compile for chrome, firefox-->
   <set-property name="compiler.stackMode" value="strip"/>
   <!--removes client-side stack trace info (can reduce size up to 15%)-->
   <set-configuration-property name="compiler.enum.obfuscate.names"
                               value="true" />
   <!-- only use if you're not using enums as String values -->
   <set-configuration-property name="CssResource.obfuscationPrefix"
                               value="empty" />

More information:

blog comments powered by Disqus