Bazel: Build release war
Change-Id: I382757618721ef43bd6fa9ada7d120df27dcc082
This commit is contained in:
2
BUILD
2
BUILD
@@ -11,4 +11,4 @@ genrule2(
|
|||||||
|
|
||||||
pkg_war(name = 'gerrit')
|
pkg_war(name = 'gerrit')
|
||||||
pkg_war(name = 'headless', ui = None)
|
pkg_war(name = 'headless', ui = None)
|
||||||
|
pkg_war(name = 'release', ui = 'ui_optdbg_r', context = ['//plugins:core'])
|
||||||
|
@@ -124,7 +124,7 @@ _pkg_war = rule(
|
|||||||
outputs = {'war' : '%{name}.war'},
|
outputs = {'war' : '%{name}.war'},
|
||||||
)
|
)
|
||||||
|
|
||||||
def pkg_war(name, ui = 'ui_optdbg'):
|
def pkg_war(name, ui = 'ui_optdbg', context = []):
|
||||||
ui_deps = []
|
ui_deps = []
|
||||||
if ui:
|
if ui:
|
||||||
ui_deps.append('//gerrit-gwtui:%s' % ui)
|
ui_deps.append('//gerrit-gwtui:%s' % ui)
|
||||||
@@ -132,7 +132,7 @@ def pkg_war(name, ui = 'ui_optdbg'):
|
|||||||
name = name,
|
name = name,
|
||||||
libs = LIBS,
|
libs = LIBS,
|
||||||
pgmlibs = PGMLIBS,
|
pgmlibs = PGMLIBS,
|
||||||
context = ui_deps + [
|
context = context + ui_deps + [
|
||||||
'//gerrit-main:main_bin_deploy.jar',
|
'//gerrit-main:main_bin_deploy.jar',
|
||||||
'//gerrit-war:webapp_assets',
|
'//gerrit-war:webapp_assets',
|
||||||
],
|
],
|
||||||
|
Reference in New Issue
Block a user