diff options
author | lberki <lberki@google.com> | 2017-12-07 08:10:03 -0800 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2017-12-07 08:12:04 -0800 |
commit | 8e3ef748768cb81c53680e1a8093f6249b00a096 (patch) | |
tree | 86c63efc60dd0b68e807b0698d9bdb8a46b8edcb /src/test/java/com/google/devtools | |
parent | 45db110383c8dccb03979ea1745cd087c344a5a9 (diff) |
Move the javabase middleman to within JavaRuntimeInfo.
This is necessary bacause //tools/jdk:current_host_java_runtime is implemented in Skylark, and we don't (and shouldn't) have a way to create MiddlemanProvider from there.
However, we are planning to move to the the java_runtime_alias/java_host_runtime_alias rules as the exclusive representation of the javabase, so we need to be able to make one from Skylark.
Previously, this wasn't a problem, because if the javabase was a filegroup (like //tools/defaults:jdk), the path to the Java binary was taken from the configuration and the middleman from the filegroup, but since we are removing that information from the configuration, we can't do that anymore.
RELNOTES: None.
PiperOrigin-RevId: 178242307
Diffstat (limited to 'src/test/java/com/google/devtools')
-rw-r--r-- | src/test/java/com/google/devtools/build/lib/rules/java/JavaRuntimeInfoTest.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/rules/java/JavaRuntimeInfoTest.java b/src/test/java/com/google/devtools/build/lib/rules/java/JavaRuntimeInfoTest.java index 8b4184ff51..0d7242453e 100644 --- a/src/test/java/com/google/devtools/build/lib/rules/java/JavaRuntimeInfoTest.java +++ b/src/test/java/com/google/devtools/build/lib/rules/java/JavaRuntimeInfoTest.java @@ -31,11 +31,13 @@ public class JavaRuntimeInfoTest { public void equalityIsObjectIdentity() { JavaRuntimeInfo a = new JavaRuntimeInfo( NestedSetBuilder.emptySet(Order.STABLE_ORDER), + NestedSetBuilder.emptySet(Order.STABLE_ORDER), PathFragment.create(""), PathFragment.create(""), PathFragment.create("")); JavaRuntimeInfo b = new JavaRuntimeInfo( NestedSetBuilder.emptySet(Order.STABLE_ORDER), + NestedSetBuilder.emptySet(Order.STABLE_ORDER), PathFragment.create(""), PathFragment.create(""), PathFragment.create("")); |