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:
Koji Sekiguchi 2011-02-16 01:44:33 +00:00
parent 8bff9e1ff5
commit 59b0e98cfb
1 changed files with 1 additions and 6 deletions

View File

@ -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);
}
/**