commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r818398 - /commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Loader.java
Date Thu, 24 Sep 2009 08:21:32 GMT
Author: mturk
Date: Thu Sep 24 08:21:32 2009
New Revision: 818398

URL: http://svn.apache.org/viewvc?rev=818398&view=rev
Log:
Fix dump

Modified:
    commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Loader.java

Modified: commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Loader.java
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Loader.java?rev=818398&r1=818397&r2=818398&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Loader.java (original)
+++ commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Loader.java Thu
Sep 24 08:21:32 2009
@@ -264,8 +264,12 @@
                 System.out.println("Loaded from classpath: ");
                 for (int i = 0; i < Properties.NATIVE_LIBS.length; i++) {
                     File f =  libs.get(Properties.NATIVE_LIBS[i]);
-                    System.out.println("[" + i + "] " +
-                                       f == null ? "java.library.path" : f.getPath());
+                    String from;
+                    if (f != null)
+                        from = f.getPath();
+                    else
+                        from = "${java.library.path}";
+                    System.out.println("[" + i + "] " + from);
                 }
                 System.out.println();
             }



Mime
View raw message