mirror of https://github.com/apache/lucene.git
SOLR-1449, SOLR-2364: revert r1069656 change
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1071121 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8bff9e1ff5
commit
59b0e98cfb
|
@ -131,12 +131,7 @@ public class SolrResourceLoader implements ResourceLoader
|
|||
*/
|
||||
void addToClassLoader(final String baseDir, final FileFilter filter) {
|
||||
File base = FileUtils.resolvePath(new File(getInstanceDir()), baseDir);
|
||||
if(base != null && base.canRead() && base.isDirectory()){
|
||||
this.classLoader = replaceClassLoader(classLoader, base, filter);
|
||||
}
|
||||
else{
|
||||
log.error("Can't find (or read) file to add to classloader: " + base);
|
||||
}
|
||||
this.classLoader = replaceClassLoader(classLoader, base, filter);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue