You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by us...@apache.org on 2014/02/22 23:34:19 UTC

svn commit: r1570937 - /lucene/dev/trunk/solr/test-framework/src/java/org/apache/solr/SolrTestCaseJ4.java

Author: uschindler
Date: Sat Feb 22 22:34:19 2014
New Revision: 1570937

URL: http://svn.apache.org/r1570937
Log:
SOLR-5764: More improvements.

Modified:
    lucene/dev/trunk/solr/test-framework/src/java/org/apache/solr/SolrTestCaseJ4.java

Modified: lucene/dev/trunk/solr/test-framework/src/java/org/apache/solr/SolrTestCaseJ4.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/test-framework/src/java/org/apache/solr/SolrTestCaseJ4.java?rev=1570937&r1=1570936&r2=1570937&view=diff
==============================================================================
--- lucene/dev/trunk/solr/test-framework/src/java/org/apache/solr/SolrTestCaseJ4.java (original)
+++ lucene/dev/trunk/solr/test-framework/src/java/org/apache/solr/SolrTestCaseJ4.java Sat Feb 22 22:34:19 2014
@@ -1669,8 +1669,9 @@ public abstract class SolrTestCaseJ4 ext
     if (url != null) {
       try {
         return new File(url.toURI());
-      } catch (URISyntaxException use) {
-        // ignore + fall-through
+      } catch (Exception e) {
+        throw new RuntimeException("Resource was found on classpath, but cannot be resolved to a " + 
+            "normal file (maybe it is part of a JAR file): " + name);
       }
     }
     final File file = new File(name);