Skip to content

Commit

Permalink
Expose default jvm opts to Starlark
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 384411178
  • Loading branch information
hvadehra authored and copybara-github committed Jul 13, 2021
1 parent 286f4b4 commit 5b3eac0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ public boolean inmemoryJdepsFiles() {
return inmemoryJdepsFiles;
}

@Override
public ImmutableList<String> getDefaultJvmFlags() {
return defaultJvmFlags;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ public interface JavaConfigurationApi extends StarlarkValue {
doc = "The value of the strict_java_deps flag.")
String getStrictJavaDepsName();

@StarlarkMethod(
name = "default_jvm_opts",
structField = true,
doc = "Additional options to pass to the Java VM for each java_binary target")
ImmutableList<String> getDefaultJvmFlags();

@StarlarkMethod(
name = "plugins",
structField = true,
Expand Down

0 comments on commit 5b3eac0

Please sign in to comment.