Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8227641

document how java-options values with spaces are processed

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 14
    • Fix Version/s: 14
    • Component/s: docs
    • Labels:
      None

      Description

      when the jpackage option "--java-options" is used with a value containing spaces, the cfg file is ill formed, resulting in an app that may not be able to run.
      for example:
      jpackage \
      --input ../input-jars \
      --output output \
      --name simple \
      --main-jar hello.jar \
      --main-class hello \
      --java-options '-Dfoo=foo bar' \
      results in a simple.cfg file with:
      [JavaOptions]
      -Dfoo=foo
      bar

      the app then fails since 'bar' is not a valid option

        Attachments

          Activity

            People

            • Assignee:
              jgordon Joni Gordon
              Reporter:
              herrick Andy Herrick
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: