--
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/CACJA90%2BV%2BgtzqfQBsod8kmKXx%3Dt1qxOYO%2BqzrDJvp_8_hKrGcQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Bazel/JVM Special Interest Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-sig-jv...@googlegroups.com.
To post to this group, send email to bazel-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-sig-jvm/CAJ5fxHLeT4McVEBpKF%3DrusUyAt1ff-X-9BNOUCtZi969Y5tHWQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/CAOfK4wW5j7oKn86o6W%2BLit%3DnERV3h0KoiRtHh%3D2YDVGfna6zdA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Do you have any thoughts on how this will play together with remote execution?
That size reduction sounds great! Thanks for your efforts!I reckon the embedded JDK's purpose is to allow running Bazel without requiring a separate JDK (or JRE), and as a bonus to compile any embedded tools should they be implemented in Java. (I don't know if there are any.)What's the use case for $(JAVA) in a genrule? If it's to run arbitrary Java binaries, then wouldn't using java_binary (in conjunction with java_import if necessary) eliminate the need for $(JAVA)? And if so, you'd already be building Java rules and needed a full JDK, so $(JAVA) sounds like a misfeature and no longer providing a full JDK sounds reasonable. (Let's put aside for now that this would potentially break existing genrules that rely on $(JAVA).)How does that logic sound?
I also checked the Bazel source code and there is one test that uses $(JAVA) andone that does uses $(JAVABASE)/bin/javap in a genrule. So I think we should clean that up :-).
I reckon the embedded JDK's purpose is to allow running Bazel without requiring a separate JDK (or JRE), and as a bonus to compile any embedded tools should they be implemented in Java. (I don't know if there are any.)
What's the use case for $(JAVA) in a genrule? If it's to run arbitrary Java binaries, then wouldn't using java_binary (in conjunction with java_import if necessary) eliminate the need for $(JAVA)? And if so, you'd already be building Java rules and needed a full JDK, so $(JAVA) sounds like a misfeature and no longer providing a full JDK sounds reasonable. (Let's put aside for now that this would potentially break existing genrules that rely on $(JAVA).)
But internally trying to test the 0.16 release with these changes seeing that the rt.jar isn't in the runfiles of java binaries and thus classpaths. Is this expected or a bug? it means that java.lang.Object isn't in the reflection mirrorin something like$ cd bazel-out/host/bin/external/io_bazel_rules_scala/src/java/io/bazel/rulesscala/scalac/scalac.runfiles/embedded_jdk$ find . -name '*.jar'./lib/jrt-fs.jaris this possibly a configuration issue or some sort of bug?