blob: cf1e788b20668cfa76d7e85537a7488fc81165c4 [file] [log] [blame]
# 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',
stamp = 1,
cmd = ("cat bazel-out/stable-status.txt | " +
"grep STABLE_WORKSPACE_ROOT | cut -d ' ' -f 2 > $@"),
outs = ['workspace-root.txt'],
visibility = ['//visibility:public'],
)