mirror of https://github.com/apache/lucene.git
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:
parent
94db09410f
commit
00339db708
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue