Nuxeo Core Developer Guide

GWT compilation tuning

Updated: November 8, 2016 Page Information Edit on GitHub

To speed up GWT compilation by default the build is done on a limited set of user agent and locale and the build done without compilation optimization.

To build all permutations (all browser support and locales) with compilation optimization you have to use the "nightly" or "release" maven profile (Adding -Pnightly to the mvn command).

If you add a new artifact that uses GWT you can follow the same pattern by adding an extra development "gwt.xml" file that inherits from the main "gwt.xml" with the following restriction:


<module rename-to="org.nuxeo.Ecm.platform.XXXX">
  <inherits name="org.nuxeo.ecm.platform.XXXX" />
  <set-property name="user.agent" value="gecko1_8,ie8" />
  <set-property name="locale" value="en,fr" />
</module>

This module file is referred by the default maven-gwt-plugin entry, while the main module is referred in the nightly and release profile.

Check this changeset as example: https://github.com/nuxeo/nuxeo-features/commit/c8020ab67fa4f73b89475cf4e255501726471aed

6 months ago Solen Guitter NXDOC-900: fix ugly formatting
5 years ago Benoit Delbosc 3
5 years ago Benoit Delbosc 4 | igrated to Confluence 4.
5 years ago Benoit Delbosc 2
5 years ago Benoit Delbosc 1
History: Created by Benoit Delbosc