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

Misleading warning about install dir for DMG packaging

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 25
    • 23, 24, 25
    • tools
    • b13
    • generic
    • os_x

      When `--install-dir` option is used for DMG packaging jpackage always outputs the following warning:
      ---
      Warning: "--install-dir" is not supported by DMG and will be default to /Applications.
      ---

      This warning is misleading for runtime packaging as the installation directory will be located in "/Library/Java/JavaVirtualMachines" directory.

      The warning also doesn't make sense if the value of
      `--install-dir` option is the same as the default installation directory.

      Apply two fixes:
       - Don't issue the warning if the value of `--install-dir` option equals the default installation location.
       - Report the correct default installation location for runtime packaging.

            asemenyuk Alexey Semenyuk
            asemenyuk Alexey Semenyuk
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: