diff options
author | Omair Majid <[email protected]> | 2011-01-04 13:08:25 -0500 |
---|---|---|
committer | Omair Majid <[email protected]> | 2011-01-04 13:08:25 -0500 |
commit | 9b248be54453dd278ab32980ab8492d4d6208b10 (patch) | |
tree | 9754a04b7e11ce69bbe6daa57dc0e1d36e3b6e26 /netx | |
parent | 452ef539b985c1cbfaa479088a161a98ba881dfe (diff) |
only print debug output when not null
2011-01-04 Omair Majid <[email protected]>
* netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java
(installShutdownHooks): Only print when not null.
Diffstat (limited to 'netx')
-rw-r--r-- | netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java index 3ac5014..486ddff 100644 --- a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java +++ b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java @@ -182,16 +182,15 @@ public class JNLPClassLoader extends URLClassLoader { Runtime.getRuntime().addShutdownHook(new Thread() { @Override public void run() { - if (JNLPRuntime.isDebug()) { - System.out.println("Cleaning up native directory" + nativeDir.getAbsolutePath()); - } - /* * Delete only the native dir created by this classloader (if * there is one). Other classloaders (parent, peers) will all * cleanup things they created */ if (nativeDir != null) { + if (JNLPRuntime.isDebug()) { + System.out.println("Cleaning up native directory" + nativeDir.getAbsolutePath()); + } try { FileUtils.recursiveDelete(nativeDir, new File(System.getProperty("java.io.tmpdir"))); |