accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ktur...@apache.org
Subject svn commit: r1428622 - /accumulo/trunk/start/src/main/java/org/apache/accumulo/start/classloader/AccumuloClassLoader.java
Date Thu, 03 Jan 2013 21:53:06 GMT
Author: kturner
Date: Thu Jan  3 21:53:06 2013
New Revision: 1428622

URL: http://svn.apache.org/viewvc?rev=1428622&view=rev
Log:
ACCUMULO-708 added warning if nothing is added for a classpath entry and removed some screwy
code I recently added

Modified:
    accumulo/trunk/start/src/main/java/org/apache/accumulo/start/classloader/AccumuloClassLoader.java

Modified: accumulo/trunk/start/src/main/java/org/apache/accumulo/start/classloader/AccumuloClassLoader.java
URL: http://svn.apache.org/viewvc/accumulo/trunk/start/src/main/java/org/apache/accumulo/start/classloader/AccumuloClassLoader.java?rev=1428622&r1=1428621&r2=1428622&view=diff
==============================================================================
--- accumulo/trunk/start/src/main/java/org/apache/accumulo/start/classloader/AccumuloClassLoader.java
(original)
+++ accumulo/trunk/start/src/main/java/org/apache/accumulo/start/classloader/AccumuloClassLoader.java
Thu Jan  3 21:53:06 2013
@@ -61,15 +61,7 @@ public class AccumuloClassLoader {
       // accumulo home should be set
       SITE_CONF = System.getenv("ACCUMULO_HOME") + "/conf/" + configFile;
     } else {
-      try {
-        URL siteUrl = AccumuloClassLoader.getClassLoader().getResource(configFile);
-        if (siteUrl != null)
-          SITE_CONF = siteUrl.toString();
-        else
-          SITE_CONF = null;
-      } catch (IOException e) {
-        throw new RuntimeException(e);
-      }
+      SITE_CONF = null;
     }
 
     //Register the shutdown hook
@@ -192,7 +184,11 @@ public class AccumuloClassLoader {
           if (extJars != null && extJars.length > 0) {
             for (File jar : extJars)
               urls.add(jar.toURI().toURL());
+          } else {
+            log.warn("ignoring classpath entry " + classpath);
           }
+        } else {
+          log.warn("ignoring classpath entry " + classpath);
         }
       }
     } else {



Mime
View raw message