fa18907d7f
Reformat the Bazel build files with the buildifier tool [1]. The style is different for Bazel files. Most notably, indentation level is 4 spaces instead of 2, and " is used instead of '. [1] https://github.com/bazelbuild/buildifier Change-Id: I95c0c6f11b6d76572797853b4ebb5cee5ebd3c98
20 lines
675 B
Python
20 lines
675 B
Python
# NOTE: GerritLauncher must be a single, self-contained class. Do not add any
|
|
# additional srcs or deps to this rule.
|
|
java_library(
|
|
name = "launcher",
|
|
srcs = ["src/main/java/com/google/gerrit/launcher/GerritLauncher.java"],
|
|
resources = [":workspace-root.txt"],
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
# The root of the workspace is non-hermetic, but we need it for
|
|
# on-the-fly GWT recompiles and PolyGerrit updates.
|
|
genrule(
|
|
name = "gen_root",
|
|
outs = ["workspace-root.txt"],
|
|
cmd = ("cat bazel-out/stable-status.txt | " +
|
|
"grep STABLE_WORKSPACE_ROOT | cut -d ' ' -f 2 > $@"),
|
|
stamp = 1,
|
|
visibility = ["//visibility:public"],
|
|
)
|