aboutsummaryrefslogtreecommitdiffstats
path: root/netx/net/sourceforge/jnlp/cache/NativeLibraryStorage.java
diff options
context:
space:
mode:
authorJiri Vanek <[email protected]>2013-09-25 18:50:18 +0200
committerJiri Vanek <[email protected]>2013-09-25 18:50:18 +0200
commit19e74fe5dacd03e0cb5582f840e15262e39fe24f (patch)
tree38ffc4f47f7641f8d20ba0e0e8a97a97ffb1db64 /netx/net/sourceforge/jnlp/cache/NativeLibraryStorage.java
parentfcd5c4c69fc5ea84b04f309eb40e295eab921fd8 (diff)
Introduced logging bottleneck
Diffstat (limited to 'netx/net/sourceforge/jnlp/cache/NativeLibraryStorage.java')
-rw-r--r--netx/net/sourceforge/jnlp/cache/NativeLibraryStorage.java12
1 files changed, 4 insertions, 8 deletions
diff --git a/netx/net/sourceforge/jnlp/cache/NativeLibraryStorage.java b/netx/net/sourceforge/jnlp/cache/NativeLibraryStorage.java
index 7d9eb6e..d65cadb 100644
--- a/netx/net/sourceforge/jnlp/cache/NativeLibraryStorage.java
+++ b/netx/net/sourceforge/jnlp/cache/NativeLibraryStorage.java
@@ -12,6 +12,7 @@ import java.util.jar.JarFile;
import net.sourceforge.jnlp.runtime.JNLPRuntime;
import net.sourceforge.jnlp.util.FileUtils;
+import net.sourceforge.jnlp.util.logging.OutputController;
/**
* Handles loading and access of native code loading through a JNLP application or applet.
@@ -34,9 +35,7 @@ public class NativeLibraryStorage {
*/
public void cleanupTemporaryFolder() {
if (jarEntryDirectory != null) {
- if (JNLPRuntime.isDebug()) {
- System.out.println("Cleaning up native directory" + jarEntryDirectory.getAbsolutePath());
- }
+ OutputController.getLogger().log("Cleaning up native directory" + jarEntryDirectory.getAbsolutePath());
try {
FileUtils.recursiveDelete(jarEntryDirectory,
new File(System.getProperty("java.io.tmpdir")));
@@ -84,9 +83,7 @@ public class NativeLibraryStorage {
* classloader.
*/
public void addSearchJar(URL jarLocation) {
- if (JNLPRuntime.isDebug())
- System.out.println("Activate native: " + jarLocation);
-
+ OutputController.getLogger().log("Activate native: " + jarLocation);
File localFile = tracker.getCacheFile(jarLocation);
if (localFile == null)
return;
@@ -127,8 +124,7 @@ public class NativeLibraryStorage {
jarFile.close();
} catch (IOException ex) {
- if (JNLPRuntime.isDebug())
- ex.printStackTrace();
+ OutputController.getLogger().log(ex);
}
}