[RFC] netx: add support for parsing and saving deployment.config files

Omair Majid omajid at redhat.com
Thu Oct 21 14:26:19 PDT 2010


On 10/21/2010 05:05 PM, Deepak Bhole wrote:
> * Omair Majid<omajid at redhat.com>  [2010-10-18 11:48]:
>> Hi,
>>
>> As described on [1], The Java Plug-in and Java Web Start support
>> using various deployment.properties and deployment.config files to
>> set behaviour of these tools. The patch adds support for parsing and
>> saving these files to netx. This patch does not actually use any of
>> these settings; it just adds support so other parts of netx can
>> start using them.
>>
>> This was filed as a bug by someone against the original netx project [2].
>>
>> Any comments or concerns?
>>
>> Thanks,
>> Omair
>>
>> [1] http://download.oracle.com/javase/1.5.0/docs/guide/deployment/deployment-guide/properties.html
>> [2] http://sourceforge.net/tracker/?func=detail&aid=2832947&group_id=72541&atid=534854
>
> <snip>
>
>> +
>> +    /**
>> +     * Loads properties properties file, if one exists
>> +     *
>
> Minor typo above.

Fixed.

>
>> +     * @param type the ConfigType to load
>> +     * @param file the File to load Properties from
>
> <snip>
>
>> +            /* exit if there is a fatal exception loading the configuration */
>> +            if (isApplication) {
>> +                System.out.println(getMessage("RConfigurationError"));
>> +                System.exit(-1);
>
>
> Is there a reason you chose negative exit code? NetX uses +1 everywhere
> else.
>

Ah, I didnt see that netx uses 1. I have fixed it now.

Thanks for reviewing the patch. Area there other issues I should fix?

Thanks,
Omair
-------------- next part --------------
A non-text attachment was scrubbed...
Name: icedtea-web-deployment-config-02.patch
Type: text/x-patch
Size: 26463 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20101021/94d9f3e9/icedtea-web-deployment-config-02.patch 


More information about the distro-pkg-dev mailing list