SOLR-5764: More improvements.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1570937 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Uwe Schindler 2014-02-22 22:34:19 +00:00
parent 94db09410f
commit 00339db708
1 changed files with 3 additions and 2 deletions

View File

@ -1669,8 +1669,9 @@ public abstract class SolrTestCaseJ4 extends LuceneTestCase {
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);