blob: 2d3050eb02d7a5d08c4f4743360630b2a37d0203 [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"],
)
java_library(
name = "query_parser",
srcs = [":query"],
visibility = [
"//java/com/google/gerrit/index:__subpackages__",
"//javatests/com/google/gerrit:__subpackages__",
"//javatests/com/google/gerrit/index:__pkg__",
"//plugins:__pkg__",
],
deps = [
"//java/com/google/gerrit/index:query_exception",
"//lib/antlr:java-runtime",
],
)