JDK-8243272 : Add jpackage option for user defined jlink options
  • Type: CSR
  • Component: tools
  • Sub-Component: jpackage
  • Priority: P3
  • Status: Closed
  • Resolution: Approved
  • Fix Versions: 15
  • Submitted: 2020-04-21
  • Updated: 2020-04-29
  • Resolved: 2020-04-29
Related Reports
CSR :  
Description
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 <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.


Comments
Moving to Approved.
29-04-2020

Moving to Provisional.
27-04-2020