I can add these jars as data to java_binary, but there's no way to know where they will wind up in the JAVA_RUNFILES directory, yets?
It seems they are saved in the directory as the unaliased identify, which can change.
(bind() is used, so that users can either use an external dependency, or provide their own local version.)
I can search through all run files and do content detection but the whole things seems very messy.
If I write
java_binary(
name = "example",
main_class = "Main",
visibility = ["//visibility:public"],
deps = [
":deps",
],
data = [
"//external:myjar"
],
)
Of all the runfiles, how I can I identify //external:myjar ?
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/ee7668c3-b389-44d6-80ee-5691dcf53a8b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I’m fairly certain what you want is $execpath and not $location since the former is for runtime and the latter is for build times
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/18702077-b141-4c81-8e7b-e94684664612%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.