RFC: Netx - Refactor paths

Omair Majid omajid at redhat.com
Tue Jun 16 12:49:52 PDT 2009


Hi,

This patch consolidates file paths spread throughout netx code into 
JNLPRuntime.java.

ChangeLog:
2009-06-16  Omair Majid  <omajid at redhat.com>

     * rt/net/sourceforge/jnlp/runtime/Boot.java:
     Remove aboutFile.
     (getAboutFile): Get path from JNLPRuntime.
     (getBaseDir): Fix comments.
     * rt/net/sourceforge/jnlp/runtime/JNLPRuntime.java
     Add HOME_DIR, NETXRC_FILE, NETX_DIR, SECURITY_DIR,
     CERTIFICATES_FILE, LOCKS_DIR, and NETX_ABOUT_FILE.
     (getDefaultBaseDir): Remove calls to loadWindowIcon and isHeadless()
     because they are unused. Use HOME_DIR and NETX_DIR.
     (getProperties): Use NETXRC_FILE instead of hardcoded file name.
     * rt/net/sourceforge/jnlp/security/SecurityUtil.java
     Remove homeDir, certDir and certFile.
     (getTrustedCertsFilename): Use HOME_DIR and CERTIFICATES_FILE.
     (checkTrustedCertsFile): Find parent directory from certFile.

Any comments?

Cheers,
Omair
-------------- next part --------------
A non-text attachment was scrubbed...
Name: netx-refactor-file-paths.patch
Type: text/x-patch
Size: 5804 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20090616/81128eb7/netx-refactor-file-paths.patch 


More information about the distro-pkg-dev mailing list