Skip to content

Commit

Permalink
Expose the java runtime information in JavaToolChain to Starlark
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 375702665
  • Loading branch information
hvadehra authored and copybara-github committed May 25, 2021
1 parent 961b176 commit 4cc2429
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,7 @@ public JavaSemantics getJavaSemantics() {
return javaSemantics;
}

@Override
public JavaRuntimeInfo getJavaRuntime() {
return javaRuntime;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,7 @@ public interface JavaToolchainStarlarkApiProviderApi extends StructApi {

@StarlarkMethod(name = "tools", doc = "The compilation tools.", structField = true)
Depset getStarlarkTools();

@StarlarkMethod(name = "java_runtime", doc = "The java runtime information.", structField = true)
JavaRuntimeInfoApi getJavaRuntime();
}

0 comments on commit 4cc2429

Please sign in to comment.