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

jlink --add-options plugin does not allow GNU style options to be provided

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 25
    • 20
    • tools
    • None
    • master

      The jlink options parsing currently doesn't allow the argument for a jlink plugin to use GNU style (--) options, e.g.

      $ jlink --add-modules java.base,jdk.incubator.concurrent --output myimage --add-options --add-modules=jdk.incubator.concurrent
      Error: no value given for --add-options
      Usage: jlink <options> --module-path <modulepath> --add-modules <module>[,<module>...]
      Use --help for a list of possible options

      A possible workaround is to prepend a space, e.g.
      --add-options \ --add-modules=jdk.incubator.concurrent

      The parsing needs to be ex-examined. It may be that --add-options should have @argfile support, or maybe it should support quoting so the arguments for a jlink option can be delimited by quotes.

            henryjen Henry Jen
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: