hg: jigsaw/jake/jdk: jdk.joptsimple

Jaroslav Tulach jaroslav.tulach at oracle.com
Wed Aug 28 18:59:46 PDT 2013


Hello.

Dne St 28. srpna 2013 23:31:57, mark.reinhold at oracle.com napsal(a):
> Changeset: 3bd5eb5a545f
> Author:    mr
> Date:      2013-08-28 16:31 -0700
> URL:       http://hg.openjdk.java.net/jigsaw/jake/jdk/rev/3bd5eb5a545f
> 
> jdk.joptsimple
> 
> + src/share/classes/jdk/joptsimple/AbstractOptionSpec.java
> + src/share/classes/jdk/joptsimple/AlternativeLongOptionSpec.java
> + src/share/classes/jdk/joptsimple/ArgumentAcceptingOptionSpec.java
> + src/share/classes/jdk/joptsimple/ArgumentList.java
> + src/share/classes/jdk/joptsimple/HelpFormatter.java
> + src/share/classes/jdk/joptsimple/IllegalOptionClusterException.java
> + src/share/classes/jdk/joptsimple/IllegalOptionSpecificationException.java
> + src/share/classes/jdk/joptsimple/MultipleArgumentsForOptionException.java
> + src/share/classes/jdk/joptsimple/NoArgumentOptionSpec.java
> + src/share/classes/jdk/joptsimple/OptionArgumentConversionException.java
> + src/share/classes/jdk/joptsimple/OptionException.java

Seems the kind of utility everyone has to write once from scratch, right? I 
did it as well as it seemed no existing parser matches our needs.

NetBeans offers standalone, modular, ServiceLoader based, declarative, POSIX 
complient approach for parsing command line arguments in a single JAR API:
http://bits.netbeans.org/dev/javadoc/org-netbeans-modules-sendopts/overview-summary.html
available from NetBeans maven repository:
http://bits.netbeans.org/maven2/
http://bits.netbeans.org/nexus/content/groups/netbeans/org/netbeans/api/org-netbeans-modules-sendopts/
and easily usable outside of the NetBeans Platform.

FYI only.
-jt

> +
> src/share/classes/jdk/joptsimple/OptionMissingRequiredArgumentException.jav
> a + src/share/classes/jdk/joptsimple/OptionParser.java
> + src/share/classes/jdk/joptsimple/OptionParserState.java
> + src/share/classes/jdk/joptsimple/OptionSet.java
> + src/share/classes/jdk/joptsimple/OptionSpec.java
> + src/share/classes/jdk/joptsimple/OptionSpecBuilder.java
> + src/share/classes/jdk/joptsimple/OptionSpecTokenizer.java
> + src/share/classes/jdk/joptsimple/OptionSpecVisitor.java
> + src/share/classes/jdk/joptsimple/OptionalArgumentOptionSpec.java
> + src/share/classes/jdk/joptsimple/ParserRules.java
> + src/share/classes/jdk/joptsimple/RequiredArgumentOptionSpec.java
> + src/share/classes/jdk/joptsimple/UnrecognizedOptionException.java
> + src/share/classes/jdk/joptsimple/internal/AbbreviationMap.java
> + src/share/classes/jdk/joptsimple/internal/Classes.java
> + src/share/classes/jdk/joptsimple/internal/Column.java
> + src/share/classes/jdk/joptsimple/internal/ColumnWidthCalculator.java
> + src/share/classes/jdk/joptsimple/internal/ColumnarData.java
> + src/share/classes/jdk/joptsimple/internal/Reflection.java
> + src/share/classes/jdk/joptsimple/internal/ReflectionException.java
> + src/share/classes/jdk/joptsimple/internal/Strings.java
> + src/share/classes/jdk/joptsimple/internal/ValueConverter.java
> + src/share/classes/jdk/joptsimple/util/KeyValuePair.java


More information about the jigsaw-dev mailing list