Skip to content

Commit

Permalink
Fix up @build_tools//tools/java package
Browse files Browse the repository at this point in the history
bazelbuild#12994 added the file, but it's
currently exposed as:
`@build_tools//tools:java/java_stub_template.txt`

This fixes it up to be properly exposed as:
`@build_tools//tools/java:java_stub_template.txt`

Which makes more sense :)
  • Loading branch information
illicitonion committed Aug 2, 2021
1 parent bdd5d49 commit d324457
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
15 changes: 14 additions & 1 deletion tools/java/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,21 @@ genrule(
visibility = ["//tools:__pkg__"],
)

# Generate a BUILD.bazel file to put in the repo, as this one references targets which don't exist in a Bazel distribution.
# Note: We need to call it BUILD.bazel not BUILD because otherwise it conflicts with this file.
genrule(
name = "generated_BUILD",
srcs = ["BUILD.for_buildtools"],
outs = ["BUILD.bazel"],
cmd = "cp $< $@",
)

filegroup(
name = "embedded_tools",
srcs = ["//tools/java/runfiles:embedded_tools"],
srcs = [
":generated_BUILD",
":java_stub_template.txt",
"//tools/java/runfiles:embedded_tools",
],
visibility = ["//tools:__pkg__"],
)
1 change: 1 addition & 0 deletions tools/java/BUILD.for_buildtools
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
exports_files(["java_stub_template.txt"])

0 comments on commit d324457

Please sign in to comment.