package(default_visibility = ["//src:__subpackages__"]) java_binary( name = "JavaBuilder", srcs = glob(["java/com/google/devtools/build/buildjar/**/*.java"]), main_class = "com.google.devtools.build.buildjar.BazelJavaBuilder", deps = [ "//src/main/protobuf:proto_deps", "//third_party:guava", "//third_party:jsr305", "//third_party:protobuf", "//tools/jdk:langtools-neverlink", ], ) # Exports $(locations //tools/defaults:javac_bootclasspath) to the java world. genrule( name = "javac-bootclasspath-locations", srcs = ["//tools/defaults:javac_bootclasspath"], outs = ["java/com/google/devtools/build/java/bazel/JavacBootclasspathLocations.java"], cmd = """ declare -a paths=($(SRCS)) && paths=($${paths[@]#$(GENDIR)/}) && IFS=: && cat > $@ < $@ <