Build Gerrit in headless mode

buck build headless

produces binary artifact without GWT.

Change-Id: Ic98312e9924d32057d6876effbdf12e489d44a8b
This commit is contained in:
David Ostrovsky 2015-02-27 19:19:45 +01:00 committed by David Pursehouse
parent ffa3e218d5
commit 7a29533643
4 changed files with 18 additions and 2 deletions

View File

@ -9,6 +9,7 @@
docs = //Documentation:searchfree
firefox = //:firefox
gerrit = //:gerrit
headless = //:headless
release = //:release
safari = //:safari
soyc = //gerrit-gwtui:ui_soyc

1
BUCK
View File

@ -1,6 +1,7 @@
include_defs('//tools/build.defs')
gerrit_war(name = 'gerrit')
gerrit_war(name = 'headless', ui = None)
gerrit_war(name = 'chrome', ui = 'ui_chrome')
gerrit_war(name = 'firefox', ui = 'ui_firefox')
gerrit_war(name = 'safari', ui = 'ui_safari')

View File

@ -116,6 +116,20 @@ The output executable WAR will be placed in:
----
=== Headless Mode
To build Gerrit in headless mode, i.e. without the GWT Web UI:
----
buck build headless
----
The output executable WAR will be placed in:
----
buck-out/gen/headless.war
----
=== Extension and Plugin API JAR Files
To build the extension, plugin and GWT API JAR files:

View File

@ -71,8 +71,8 @@ def gerrit_war(name, ui = 'ui_optdbg', context = [], docs = False, visibility =
context = [
'//gerrit-main:main_bin',
'//gerrit-war:webapp_assets',
'//gerrit-gwtui:' + ui,
] + context,
] + (['//gerrit-gwtui:' + ui] if ui else []) +
context,
docs = docs,
visibility = visibility,
)