You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2009/09/23 10:14:28 UTC
svn commit: r817999 -
/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Library.java
Author: mturk
Date: Wed Sep 23 08:14:28 2009
New Revision: 817999
URL: http://svn.apache.org/viewvc?rev=817999&view=rev
Log:
Reference both acr.library.path and java.library.path loaded libs
Modified:
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Library.java
Modified: commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Library.java
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Library.java?rev=817999&r1=817998&r2=817999&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Library.java (original)
+++ commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Library.java Wed Sep 23 08:14:28 2009
@@ -130,6 +130,7 @@
try {
File f = new File(path, getSoName(libname));
System.load(f.getPath());
+ Loader.add(libname, f);
return true;
} catch (Throwable ex) {
// Cannot load from acr.boot.path
@@ -141,6 +142,7 @@
*/
try {
System.loadLibrary(libname);
+ Loader.add(libname, null);
return true;
} catch (UnsatisfiedLinkError ue) {
// Ignore