OpenSearch/distribution/licenses
Alexander Reelsen 69d7f1a78a Startup: Remove getopt parsing in shell script, use java CLITool
In order to ensure, we have the same experience across operating systems
and shells, this commit uses the java CLI parser instead of the shell
getopt parsing to parse arguments.

This also allows for support for paths, which contain spaces.

Also commons-cli depdency was upgraded to 1.3.1 and tests have been added.

Changes

* new exit code, OK_AND_EXIT, allowing to tell the caller to exit, as everything
  went as expected (e.g. when running a version output)

BWC breaking:

* execute() returns an ExitStatus instead of an integer, otherwise there is no
  possibility to signal by a command, if the JVM should be exited after a run.
  This affects plugins, that have command line tools
* -v used to be version, but is a verbose flag by default in the current CLI infra,
  must be -V or --version now
* -X has been removed - the current implementation was useless anyway, as
  it prefixed those properties with "es.". You should use
  ES_JAVA_OPTS/JAVA_OPTS for JVM configuration
2015-07-30 13:20:29 +02:00
..
HdrHistogram-2.1.6.jar.sha1 Build: Set the correct sha1 for HDRHistogram. 2015-07-30 10:24:55 +02:00
HdrHistogram-LICENSE.txt
HdrHistogram-NOTICE.txt
antlr-runtime-3.5.jar.sha1
antlr-runtime-LICENSE.txt
antlr-runtime-NOTICE.txt
apache-log4j-extras-1.2.17.jar.sha1
apache-log4j-extras-DEPENDENCIES
apache-log4j-extras-LICENSE
apache-log4j-extras-NOTICE
asm-4.1.jar.sha1
asm-LICENSE.txt
asm-NOTICE.txt
asm-commons-4.1.jar.sha1
asm-commons-LICENSE.txt
asm-commons-NOTICE.txt
commons-cli-1.3.1.jar.sha1 Startup: Remove getopt parsing in shell script, use java CLITool 2015-07-30 13:20:29 +02:00
commons-cli-LICENSE.txt
commons-cli-NOTICE.txt
commons-lang3-3.3.2.jar.sha1
commons-lang3-LICENSE.txt
commons-lang3-NOTICE.txt
compiler-0.8.13.jar.sha1
compiler-LICENSE.txt
compiler-NOTICE.txt
compress-lzf-1.0.2.jar.sha1
compress-lzf-LICENSE
compress-lzf-NOTICE
groovy-all-2.4.4-indy.jar.sha1
groovy-all-LICENSE-ANTLR.txt
groovy-all-LICENSE-ASM.txt
groovy-all-LICENSE-CLI.txt
groovy-all-LICENSE-JSR223.txt
groovy-all-LICENSE.txt
groovy-all-NOTICE.txt
guava-18.0.jar.sha1
guava-LICENSE.txt
guava-NOTICE.txt
hppc-0.7.1.jar.sha1
hppc-LICENSE.txt
hppc-NOTICE.txt
jackson-LICENSE
jackson-NOTICE
jackson-core-2.5.3.jar.sha1
jackson-dataformat-cbor-2.5.3.jar.sha1
jackson-dataformat-smile-2.5.3.jar.sha1
jackson-dataformat-yaml-2.5.3.jar.sha1
jna-4.1.0.jar.sha1
jna-LICENSE.txt
jna-NOTICE.txt
joda-convert-1.2.jar.sha1
joda-convert-LICENSE.txt
joda-convert-NOTICE.txt
joda-time-2.8.jar.sha1
joda-time-LICENSE.txt
joda-time-NOTICE.txt
jsr166e-1.1.0.jar.sha1
jsr166e-LICENSE
jsr166e-NOTICE
jts-1.13.jar.sha1
jts-LICENSE.txt
jts-NOTICE.txt
log4j-1.2.17.jar.sha1
log4j-LICENSE
log4j-NOTICE
lucene-LICENSE.txt
lucene-NOTICE.txt
lucene-analyzers-common-5.2.1.jar.sha1
lucene-backward-codecs-5.2.1.jar.sha1
lucene-core-5.2.1.jar.sha1
lucene-expressions-5.2.1.jar.sha1
lucene-grouping-5.2.1.jar.sha1
lucene-highlighter-5.2.1.jar.sha1
lucene-join-5.2.1.jar.sha1
lucene-memory-5.2.1.jar.sha1
lucene-misc-5.2.1.jar.sha1
lucene-queries-5.2.1.jar.sha1
lucene-queryparser-5.2.1.jar.sha1
lucene-sandbox-5.2.1.jar.sha1
lucene-spatial-5.2.1.jar.sha1
lucene-suggest-5.2.1.jar.sha1
netty-3.10.3.Final.jar.sha1
netty-LICENSE.txt
netty-NOTICE.txt
snakeyaml-1.12.jar.sha1
snakeyaml-LICENSE.txt
snakeyaml-NOTICE.txt
spatial4j-0.4.1.jar.sha1
spatial4j-LICENSE.txt
spatial4j-NOTICE.txt
t-digest-3.0.jar.sha1
t-digest-LICENSE.txt
t-digest-NOTICE.txt