blob: 6d7102aa768a9550ddf6153afb6e0b384cb13e75 [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",
"find . -exec touch -t 198001010000 '{}' ';'",
"zip -q $$ROOT/$@ $$(find . -type f)",
]),
tools = [
"//lib/antlr:antlr-tool",
],
visibility = ["//visibility:public"],
)