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.
---
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.
- links to
-
Commit(master) openjdk/jdk/6a31aaeb
-
Review(master) openjdk/jdk/23752