@@ -214,14 +214,17 @@ private static final boolean addNativeJarLibsImpl(final Class<?> classFromJavaJa
214
214
final Uri nativeJarURI = JarUtil .getJarFileUri ( jarSubUriRoot .getEncoded ().concat (nativeJarBasename ) );
215
215
216
216
if (DEBUG ) {
217
- System .err .printf ("JNILibLoaderBase: addNativeJarLibsImpl: module: %s -> %s%n" , nativeJarBasename , nativeJarURI );
217
+ System .err .printf ("JNILibLoaderBase: addNativeJarLibsImpl-1 : module: %s -> %s%n" , nativeJarBasename , nativeJarURI );
218
218
}
219
219
220
220
try {
221
221
ok = TempJarCache .addNativeLibs (classFromJavaJar , nativeJarURI , nativeLibraryPath );
222
+ if (DEBUG ) {
223
+ System .err .printf ("JNILibLoaderBase: addNativeJarLibsImpl-1: OK " +ok +": %s -> %s%n" , nativeJarURI , nativeLibraryPath );
224
+ }
222
225
} catch (final Exception e ) {
223
226
if (DEBUG ) {
224
- System .err .printf ("JNILibLoaderBase: addNativeJarLibsImpl: Caught %s%n" , e .getMessage ());
227
+ System .err .printf ("JNILibLoaderBase: addNativeJarLibsImpl-1 : Caught %s%n" , e .getMessage ());
225
228
e .printStackTrace ();
226
229
}
227
230
}
@@ -235,18 +238,18 @@ private static final boolean addNativeJarLibsImpl(final Class<?> classFromJavaJa
235
238
if (null != nativeLibraryURI ) {
236
239
final Uri nativeJarURI = JarUtil .getJarFileUri ( jarSubUriRoot .getEncoded ().concat (jarBasename ) );
237
240
try {
238
- if ( TempJarCache .addNativeLibs (classFromJavaJar , nativeJarURI , nativeLibraryPath ) ) {
239
- ok = true ;
240
- if (DEBUG ) {
241
- System .err .printf ("JNILibLoaderBase: addNativeJarLibsImpl: fat: %s -> %s%n" , jarBasename , nativeJarURI );
242
- }
241
+ ok = TempJarCache .addNativeLibs (classFromJavaJar , nativeJarURI , nativeLibraryPath );
242
+ if (DEBUG ) {
243
+ System .err .printf ("JNILibLoaderBase: addNativeJarLibsImpl-2: OK " +ok +", fat: %s -> %s%n" , nativeJarURI , nativeLibraryPath );
243
244
}
244
245
} catch (final Exception e ) {
245
246
if (DEBUG ) {
246
- System .err .printf ("JNILibLoaderBase: addNativeJarLibsImpl: Caught %s%n" , e .getMessage ());
247
+ System .err .printf ("JNILibLoaderBase: addNativeJarLibsImpl-2 : Caught %s%n" , e .getMessage ());
247
248
e .printStackTrace ();
248
249
}
249
250
}
251
+ } else if (DEBUG ) {
252
+ System .err .printf ("JNILibLoaderBase: addNativeJarLibsImpl-2: CL couldn't locate %s in %s%n" , nativeLibraryPath , jarBasename );
250
253
}
251
254
}
252
255
if (!ok ) {
@@ -267,17 +270,20 @@ private static final boolean addNativeJarLibsImpl(final Class<?> classFromJavaJa
267
270
final String nativeJarTagClassName = nativeJarTagPackage + "." + moduleName + "." + os_and_arch_dot + ".TAG" ; // TODO: sync with gluegen-cpptasks-base.xml
268
271
try {
269
272
if (DEBUG ) {
270
- System .err .printf ("JNILibLoaderBase: addNativeJarLibsImpl: ClassLoader/TAG: Locating module %s, os.and.arch %s: %s%n" ,
273
+ System .err .printf ("JNILibLoaderBase: addNativeJarLibsImpl-3 : ClassLoader/TAG: Locating module %s, os.and.arch %s: %s%n" ,
271
274
moduleName , os_and_arch_dot , nativeJarTagClassName );
272
275
}
273
276
final Uri nativeJarTagClassJarURI = JarUtil .getJarUri (nativeJarTagClassName , cl );
274
277
if (DEBUG ) {
275
- System .err .printf ("JNILibLoaderBase: addNativeJarLibsImpl: ClassLoader/TAG: %s -> %s%n" , nativeJarTagClassName , nativeJarTagClassJarURI );
278
+ System .err .printf ("JNILibLoaderBase: addNativeJarLibsImpl-3 : ClassLoader/TAG: %s -> %s%n" , nativeJarTagClassName , nativeJarTagClassJarURI );
276
279
}
277
280
ok = TempJarCache .addNativeLibs (classFromJavaJar , nativeJarTagClassJarURI , nativeLibraryPath );
281
+ if (DEBUG ) {
282
+ System .err .printf ("JNILibLoaderBase: addNativeJarLibsImpl-3: OK " +ok +": %s -> %s%n" , nativeJarTagClassJarURI , nativeLibraryPath );
283
+ }
278
284
} catch (final Exception e ) {
279
285
if (DEBUG ) {
280
- System .err .printf ("JNILibLoaderBase: addNativeJarLibsImpl: Caught %s%n" , e .getMessage ());
286
+ System .err .printf ("JNILibLoaderBase: addNativeJarLibsImpl-3 : Caught %s%n" , e .getMessage ());
281
287
e .printStackTrace ();
282
288
}
283
289
}
0 commit comments