Please review the jpackage fix for bug [1] at [2].

This is a fix for the JDK-8200758-branch branch of the open sandbox repository (jpackage).

- There are no know bugs in how we handle java options with spaces. However, it might be complicated to figure out how to provide such options. Added several examples to help to show most common cases.

  --java-options <java options>
          Options to pass to the Java runtime
          This option can be used multiple times.
          Example 1: To specify [-DOption1=My Great App] use
           [--java-options "-DOption1=\"My Great App\""]
          Example 2: To specify [-DOption2="My Great App in quotes"] use
           [--java-options "-DOption2=\"\\\"My Great App in quotes\\\"\""]
          Example 3: To specify [-DOption3=Value "with" quotes] use
           [--java-options "-DOption3=\"Value \\\"with\\\" quotes\""]

Application will read them back as:
-DOption1=My Great App
-DOption2="My Great App in quotes"
-DOption3=Value "with" quotes

[1] https://bugs.openjdk.java.net/browse/JDK-8227641

[2] http://cr.openjdk.java.net/~almatvee/8227641/webrev.00/

Thanks,
Alexander

Reply via email to