summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2013-10-01 22:43:49 +0200
committerSven Gothel <[email protected]>2013-10-01 22:43:49 +0200
commit3c9812c130fac9237a2dc2e18a6639ec3583eed7 (patch)
treed925197ba168473e0c89d6b802c89e5ea011a4bb
parent01c5d59c5245068b0d005ccbb64f8d0aa5165f12 (diff)
JNILibLoaderBase.addNativeJarLibsImpl(..): Cleanup debug message creation.
-rw-r--r--src/java/com/jogamp/common/jvm/JNILibLoaderBase.java23
1 files changed, 10 insertions, 13 deletions
diff --git a/src/java/com/jogamp/common/jvm/JNILibLoaderBase.java b/src/java/com/jogamp/common/jvm/JNILibLoaderBase.java
index 90969bb..67cc05c 100644
--- a/src/java/com/jogamp/common/jvm/JNILibLoaderBase.java
+++ b/src/java/com/jogamp/common/jvm/JNILibLoaderBase.java
@@ -164,7 +164,8 @@ public class JNILibLoaderBase {
throws IOException, SecurityException, URISyntaxException
{
msg.setLength(0); // reset
- msg.append("addNativeJarLibsImpl(classFromJavaJar ").append(classFromJavaJar).append(", classJarURI ").append(classJarURI).append(", nativeJarBaseName ").append(nativeJarBasename).append("): ");
+ msg.append("addNativeJarLibsImpl(classFromJavaJar ").append(classFromJavaJar).append(", classJarURI ").append(classJarURI)
+ .append(", nativeJarBaseName ").append(nativeJarBasename).append("): ");
boolean ok = false;
if(TempJarCache.isInitialized()) {
final URI jarSubURI = JarUtil.getJarSubURI( classJarURI );
@@ -172,6 +173,7 @@ public class JNILibLoaderBase {
throw new IllegalArgumentException("JarSubURI is null of: "+classJarURI);
}
final String jarUriRoot_s = IOUtil.getURIDirname( jarSubURI.toString() );
+ msg.append("[ ").append(jarSubURI.toString()).append(" -> ").append(jarUriRoot_s).append(" ] + ");
final String nativeLibraryPath = "natives/"+PlatformPropsImpl.os_and_arch+"/";
final ClassLoader cl = classFromJavaJar.getClassLoader();
@@ -182,25 +184,20 @@ public class JNILibLoaderBase {
final URI nativeJarURI = JarUtil.getJarFileURI(jarUriRoot_s+jarBasename);
if( TempJarCache.addNativeLibs(classFromJavaJar, nativeJarURI, nativeLibraryPath) ) {
ok = true;
- msg.append(jarBasename);
- msg.append(" + ").append(jarUriRoot_s);
- msg.append(" -> fat: ").append(jarBasename);
- if(DEBUG) {
- System.err.println(msg.toString());
- }
+ msg.append(jarBasename).append(" -> fat: ").append(nativeJarURI);
}
}
if( !ok ) {
// We assume one slim native jar file per 'os.and.arch'!
- msg.append(nativeJarBasename);
- msg.append(" + ").append(jarUriRoot_s);
final URI nativeJarURI = JarUtil.getJarFileURI(jarUriRoot_s+nativeJarBasename);
- msg.append(" -> slim: ").append(nativeJarURI);
- if(DEBUG) {
- System.err.println(msg.toString());
- }
+ msg.append(nativeJarBasename).append(" -> slim: ").append(nativeJarURI);
ok = TempJarCache.addNativeLibs(classFromJavaJar, nativeJarURI, null /* nativeLibraryPath */);
}
+ } else {
+ msg.append("TempJarCache n/a");
+ }
+ if(DEBUG) {
+ System.err.println(msg.toString()+" - OK "+ok);
}
return ok;
}