RFR [9] 8168149: Examine the behavior of jmod command-line options - repeating vs last one wins
Chris Hegarty
chris.hegarty at oracle.com
Thu Dec 22 17:11:07 UTC 2016
Most options for the jmod tool should be last one wins, to be consistent
with the JDK tool convention, 8168149 [1]. Excludes is the only
repeatable option.
Given the existing usage of JOpt Simple, the most straight forward way
to achieve the last-one-wins behaviour is to drop the
withValuesSeparatedBy() from the OptionSpec have have the ValueConverters
themselves do the separation, if any. That way all options can be made
repeatable and the last element of the list of the option’s values will
be the final one on the command line.
http://cr.openjdk.java.net/~chegar/8168149.00/
-Chris.
[1] https://bugs.openjdk.java.net/browse/JDK-8168149
More information about the jigsaw-dev
mailing list