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

Add jpackage option for user defined jlink options

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P3 P3
    • 15
    • tools
    • None
    • behavioral
    • minimal
    • existing jpackage invocations that use "--bind-services" will see a deprecation warning.
    • add/remove/modify command line option
    • JDK

      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.

            herrick Andy Herrick (Inactive)
            herrick Andy Herrick (Inactive)
            Alexey Semenyuk, Kevin Rushforth
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: