[rfc][icedtea-web] Option Parser

Lukasz Dracz ldracz at redhat.com
Tue Sep 9 20:17:47 UTC 2014


Hello,

I have added support for -jnlp and -basedir. In OptionsDefinitions I added JNLP to runtime options jawaws list and BASEDIR directly to the javaws list.

I also got rid of the boolean in the constructor and the call to findMainArg from the constructor. I made findMainArg public since I found that really only want this called if -jnlp or -basedir is not found when parsed for. Added a getMainArgs() to return multiple arguments it finds as Main Args. 

The not valid args are dealt with in Boot's getJNLPFile. It determines whether it has more than 1 main arg or if it has additional main arg along with a JNLP and BASEDIR value, and then outputs that these main args are not valid arguments. Then it checks for JNLP, BASEDIR and a single main arg and returns a value based on what it finds.

Thank you,
Lukasz Dracz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: optionParser-13.patch
Type: text/x-patch
Size: 37369 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20140909/adb299e6/optionParser-13-0001.patch>


More information about the distro-pkg-dev mailing list