Bazel: Build release war

Change-Id: I382757618721ef43bd6fa9ada7d120df27dcc082
This commit is contained in:
David Ostrovsky
2016-09-23 14:18:51 +02:00
parent b5313f0663
commit f5fe0f84b6
2 changed files with 3 additions and 3 deletions

2
BUILD
View File

@@ -11,4 +11,4 @@ genrule2(
pkg_war(name = 'gerrit')
pkg_war(name = 'headless', ui = None)
pkg_war(name = 'release', ui = 'ui_optdbg_r', context = ['//plugins:core'])

View File

@@ -124,7 +124,7 @@ _pkg_war = rule(
outputs = {'war' : '%{name}.war'},
)
def pkg_war(name, ui = 'ui_optdbg'):
def pkg_war(name, ui = 'ui_optdbg', context = []):
ui_deps = []
if ui:
ui_deps.append('//gerrit-gwtui:%s' % ui)
@@ -132,7 +132,7 @@ def pkg_war(name, ui = 'ui_optdbg'):
name = name,
libs = LIBS,
pgmlibs = PGMLIBS,
context = ui_deps + [
context = context + ui_deps + [
'//gerrit-main:main_bin_deploy.jar',
'//gerrit-war:webapp_assets',
],