Files
gerrit/plugins/BUILD
David Ostrovsky 64e1aff339 Bazel: Generate source dir for plugins in eclipse classpath
Change-Id: I9f71808b2ce6b29523143bcc98de4a5f50a5dc94
2016-11-25 09:58:39 +00:00

15 lines
426 B
Python

load('//tools/bzl:genrule2.bzl', 'genrule2')
load('//tools/bzl:plugins.bzl', 'CORE_PLUGINS')
genrule2(
name = 'core',
srcs = ['//plugins/%s:%s.jar' % (n, n) for n in CORE_PLUGINS],
cmd = 'mkdir -p $$TMP/WEB-INF/plugins;' +
'for s in $(SRCS) ; do ' +
'ln -s $$ROOT/$$s $$TMP/WEB-INF/plugins;done;' +
'cd $$TMP;' +
'zip -qr $$ROOT/$@ .',
outs = [ 'core.zip' ],
visibility = ['//visibility:public'],
)