-
Notifications
You must be signed in to change notification settings - Fork 213
/
BUILD
34 lines (32 loc) · 992 Bytes
/
BUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
load("@rules_java//java:defs.bzl", "java_library")
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__",
"//java/com/google/gerrit/server:__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",
],
)