aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/runtime
diff options
context:
space:
mode:
authorGravatar Janak Ramakrishnan <janakr@google.com>2015-11-13 23:34:14 +0000
committerGravatar Damien Martin-Guillerez <dmarting@google.com>2015-11-16 09:02:33 +0000
commit533657e0b13320312268d3d4d23ae6507304a317 (patch)
tree8a3fbe3e60cc8655f816695e8ecae04413734537 /src/main/java/com/google/devtools/build/lib/runtime
parentb503be7b2e2e6a1601bff3790e6e292ff9076359 (diff)
Optionally allow Bazel to pass JVM options containing spaces directly through to the JVM instead of (almost certainly incorrectly) splitting the options along spaces.
This allows us to pass non-quote-delimited strings to the JVM, which is necessary for things like -XX:OnOutOfMemoryError="kill -3 %p" (normally bash strips those quotes, but they're not stripped when passed via --host_jvm_args). -- MOS_MIGRATED_REVID=107820087
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/runtime')
-rw-r--r--src/main/java/com/google/devtools/build/lib/runtime/BlazeServerStartupOptions.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/runtime/BlazeServerStartupOptions.java b/src/main/java/com/google/devtools/build/lib/runtime/BlazeServerStartupOptions.java
index 69d69da39d..2621a53035 100644
--- a/src/main/java/com/google/devtools/build/lib/runtime/BlazeServerStartupOptions.java
+++ b/src/main/java/com/google/devtools/build/lib/runtime/BlazeServerStartupOptions.java
@@ -213,6 +213,16 @@ public class BlazeServerStartupOptions extends OptionsBase {
help = "Unused.")
public String unusedSkyframe;
+ @Option(
+ name = "experimental_preserve_spaces_in_host_jvm_args",
+ defaultValue = "false",
+ category = "undocumented",
+ help =
+ "If this option is true, each argument to --host_jvm_args is considered a single JVM "
+ + "flag, even if it has spaces in it."
+ )
+ public boolean unusedPreserveSpacesInHostJvmArgs;
+
@Option(name = "fatal_event_bus_exceptions",
defaultValue = "false", // NOTE: purely decorative!
category = "undocumented",