coregui.war gwt-compiler build settings
John Mazzitelli
mazz at redhat.com
Fri Nov 5 14:51:41 UTC 2010
I put this on the "advanced build" developer wiki page here:
http://rhq-project.org/display/RHQ/Advanced+Build+Notes#AdvancedBuildNotes-GWTCompilationForDifferentBrowsers
On 11/05/2010 09:58 AM, Ian Springer wrote:
> By default, coregui will now be gwt-compiled for all browsers that GWT
> supports, and compiler optimizations are enabled. These are the settings
> we want for CI/QA builds and releases, but for everyday development,
> developers will want to only compile for the browser they're using (e.g.
> Firefox 3) and disable the compiler optimizations, in order to minimize
> the time it takes to build the coregui war. The following comments from
> coregui/pom.xml document the two Maven properties (gwt.userAgent and
> gwt.draftCompile) that can be used to override these two settings:
>
> <properties>
>
> <!--
> This property is substituted, by the resource plugin during
> the resources phase, as the
> value of the user.agent property in RHQDomain.gwt.xml and
> CoreGUI.gwt.xml. The default
> value results in these GWT modules being compiled into
> JavaScript for all supported
> browsers. To limit compilation to your preferred browser(s) to
> speed up compile time,
> specify the user.agent property on the mvn command line (e.g.
> -Duser.agent=gecko1_8)
> or in your ~/.m2/settings.xml
>
> As of GWT 2.0.4, the recognized agents (defined in
> gwt-user.jar:com/google/gwt/user/UserAgent.gwt.xml) are as
> follows:
>
> ie6: IE6/IE7
> ie8: IE8
> gecko: FF2
> gecko1_8: FF3
> safari: Safari/Chrome
> opera: Opera
>
> Multiple agents can be specified as a comma-delimited list, as
> demonstrated by the
> default value below.
> -->
> <gwt.userAgent>ie6,ie8,gecko,gecko1_8,safari,opera</gwt.userAgent>
>
> <!-- Override this via mvn command line or your ~/.m2/settings.xml to
> speed up
> compilation. -->
> <gwt.draftCompile>false</gwt.draftCompile>
> </properties>
>
>
> Here is what I have in my settings.xml:
>
> <profile>
> <id>dev</id>
> <properties>
> ...
> <!-- Only gwt-compile JavaScript for Firefox 3.x. -->
> <gwt.userAgent>gecko1_8</gwt.userAgent>
> <!-- Enable faster, but less-optimized, gwt compilations. -->
> <gwt.draftCompile>true</gwt.draftCompile>
> </properties>
> </profile>
>
More information about the rhq-devel
mailing list