Change in ovirt-engine[master]: webadmin, userportal: Improve GWT build
vszocs at redhat.com
vszocs at redhat.com
Fri Jan 16 19:48:59 UTC 2015
Vojtech Szocs has submitted this change and it was merged.
Change subject: webadmin,userportal: Improve GWT build
......................................................................
webadmin,userportal: Improve GWT build
1. new Makefile variables with following defaults:
# Maven JVM options.
BUILD_JAVA_OPTS_MAVEN [-XX:MaxPermSize=512M]
# GWT compiler and Dev Mode JVM options.
BUILD_JAVA_OPTS_GWT []
Above variables can also be defined using env. variables,
so both examples below are valid use cases:
$ make clean install-dev [usual options] \
BUILD_JAVA_OPTS_GWT="..."
$ export BUILD_JAVA_OPTS_GWT="..." \
&& make clean install-dev [usual options]
In a typical environment, you'll want to:
* leave BUILD_JAVA_OPTS_MAVEN as it is
* define BUILD_JAVA_OPTS_GWT only if the build system is low
on physical memory, along with -Dgwt.compiler.localWorkers=1
to minimize GWT compiler memory footprint
If BUILD_JAVA_OPTS_GWT is empty (default), following fallback
value is used implicitly:
-Xms1024M -Xmx8192M \
-XX:PermSize=512M -XX:MaxPermSize=1024M
This is to ensure reasonable GWT compiler JVM options without
the need to customize BUILD_JAVA_OPTS_GWT for each build.
2. in Makefile "maven" target, changed:
export MAVEN_OPTS="..."
$(MVN) ...
to be:
MAVEN_OPTS="..." $(MVN)
3. in Makefile "gwt-debug" target, changed:
cd "path/to/gwt/module" && $(MVN) ...
to be:
$(MVN) -pl "path/to/gwt/module" ...
4. in "frontend modules" pom.xml, removed redundant <groupId>
as it's inherited from <parent> Maven module anyway.
Change-Id: Iaeb92d69f2ba38746559df3e44f34a61fd880908
Signed-off-by: Vojtech Szocs <vszocs at redhat.com>
---
M Makefile
M README.developer
M frontend/webadmin/modules/pom.xml
3 files changed, 39 insertions(+), 18 deletions(-)
Approvals:
Alon Bar-Lev: Looks good to me, but someone else must approve
Alexander Wels: Looks good to me, approved
Vojtech Szocs: Verified; Looks good to me, approved
--
To view, visit http://gerrit.ovirt.org/36739
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Iaeb92d69f2ba38746559df3e44f34a61fd880908
Gerrit-PatchSet: 9
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Vojtech Szocs <vszocs at redhat.com>
Gerrit-Reviewer: Alexander Wels <awels at redhat.com>
Gerrit-Reviewer: Alon Bar-Lev <alonbl at redhat.com>
Gerrit-Reviewer: Barak Korren <bkorren at redhat.com>
Gerrit-Reviewer: David Caro <dcaroest at redhat.com>
Gerrit-Reviewer: Einav Cohen <ecohen at redhat.com>
Gerrit-Reviewer: Eyal Edri <eedri at redhat.com>
Gerrit-Reviewer: Lior Vernia <lvernia at redhat.com>
Gerrit-Reviewer: Sandro Bonazzola <sbonazzo at redhat.com>
Gerrit-Reviewer: Vojtech Szocs <vszocs at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server
More information about the Engine-commits
mailing list