Summary
Add jpackage option for user defined jlink options
Problem
When jpackage invokes jlink, "--output, --add-modules, and --module-path" jlink options are as determined by jpackage. " -strip-native-commands, --strip-debug, --no-man-pages, and --no-header-files" jlink options are added by default, and --bind-services may be added if the corresponding jpackage option is used. If any different jlink options are desired, the user must use jlink directly first and use the -jpackage "-runtime-image" option.
Solution
Add a jpackage option "--jlink-options" which can replace the default options "-strip-native-commands, --strip-debug, --no-man-pages, and --no-header-files". Deprecate the jpackage option "--bind-services".
Specification
Add the following jpackage option:
--jlink-options - A space separated list of options to pass to jlink. If not specified, this option defaults to "--strip-native-commands --strip-debug --no-man-pages --no-header-files". This option can be used multiple times.
Deprecate the option "--bind-services". The same effect can be achieved by using "--jlink-options --bind-services" option.
- csr of
-
JDK-8219536 Add Option for user defined jlink options
- Resolved