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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3
    • tbd
    • 20
    • tools
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: