aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/common/util/JarUtil.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-09-22 00:29:59 +0200
committerSven Gothel <[email protected]>2011-09-22 00:29:59 +0200
commit0a45d6ca9b9a8d92b5e4c147be94fad8de344816 (patch)
tree29a6aa0dad752529209abd4d56b7e4b65ba40aa3 /src/java/com/jogamp/common/util/JarUtil.java
parentdef691b009132463f8ec8efabd0d72768235dcf5 (diff)
JNILibLoaderBase/TempJarCache: Prepare for loadLibrary(..) out of cached JARs
- JNILibLoaderBase: If TempJarCache is active, try find native library in cached JARs - TempJarCache: Add bootstrabNativeLib(..) allowing bootstraping gluegen-rt from JAR w/o needing it - JARUtil: minor edits (final)
Diffstat (limited to 'src/java/com/jogamp/common/util/JarUtil.java')
-rw-r--r--src/java/com/jogamp/common/util/JarUtil.java12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/java/com/jogamp/common/util/JarUtil.java b/src/java/com/jogamp/common/util/JarUtil.java
index a2e6be5..3cbd555 100644
--- a/src/java/com/jogamp/common/util/JarUtil.java
+++ b/src/java/com/jogamp/common/util/JarUtil.java
@@ -202,7 +202,7 @@ public class JarUtil {
boolean extractOtherFiles) throws IOException {
if (VERBOSE) {
- System.err.println("extractNativeLibs: "+jarFile.getName()+" -> "+dest+
+ System.err.println("extract: "+jarFile.getName()+" -> "+dest+
", extractNativeLibraries "+extractNativeLibraries+
", extractClassFiles"+extractClassFiles+
", extractOtherFiles "+extractOtherFiles);
@@ -239,12 +239,11 @@ public class JarUtil {
continue;
}
- boolean isDir = entryName.endsWith("/");
+ final boolean isDir = entryName.endsWith("/");
- boolean isRootEntry = entryName.indexOf('/') == -1 &&
- entryName.indexOf(File.separatorChar) == -1;
+ final boolean isRootEntry = entryName.indexOf('/') == -1 &&
+ entryName.indexOf(File.separatorChar) == -1;
- // strip prefix & suffix
final File destFile = new File(dest, entryName);
if(isDir) {
destFile.mkdir();
@@ -276,7 +275,7 @@ public class JarUtil {
}
return num;
}
-
+
/**
* Validate the certificates for each native Lib in the jar file.
* Throws an IOException if any certificate is not valid.
@@ -306,7 +305,6 @@ public class JarUtil {
throw new IOException("Cannot validate certificate for " + entryName);
}
}
-
}
/**