blob: 4846639de7db8e98ca9ddc9cd0610349aec24182 [file] [log] [blame]
load("//tools/bzl:genrule2.bzl", "genrule2")
genrule2(
name = "query",
srcs = ["com/google/gerrit/index/query/Query.g"],
outs = ["query_antlr.srcjar"],
cmd = " && ".join([
"$(location //lib/antlr:antlr-tool) -o $$TMP $<",
"cd $$TMP",
"$$ROOT/$(location @bazel_tools//tools/zip:zipper) cC $$ROOT/$@ $$(find *)",
]),
tools = [
"//lib/antlr:antlr-tool",
"@bazel_tools//tools/zip:zipper",
],
visibility = ["//visibility:public"],
)