75d1c18c91
Current implementation integrates only CORE_PLUGINS into release.war however BUCK based build used to also include CUSTOM_PLUGINS. Change-Id: I779059ae705d1d0ea8d01857dd0567038dab79b8 Signed-off-by: Jacek Centkowski <jcentkowski@collab.net> Signed-off-by: David Pursehouse <dpursehouse@collab.net>
19 lines
508 B
Python
19 lines
508 B
Python
load("//tools/bzl:genrule2.bzl", "genrule2")
|
|
load(
|
|
"//tools/bzl:plugins.bzl",
|
|
"CORE_PLUGINS",
|
|
"CUSTOM_PLUGINS",
|
|
)
|
|
|
|
genrule2(
|
|
name = "core",
|
|
srcs = ["//plugins/%s:%s.jar" % (n, n) for n in CORE_PLUGINS + CUSTOM_PLUGINS],
|
|
outs = ["core.zip"],
|
|
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/$@ .",
|
|
visibility = ["//visibility:public"],
|
|
)
|