SOLR-1041 -- dataDir is not set relative to solr home

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@748970 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Shalin Shekhar Mangar 2009-03-01 07:40:08 +00:00
parent 2484c0efe7
commit e40fc9ffad

View File

@ -117,7 +117,7 @@ public class CoreContainer
// perform compatibility init
cores = new CoreContainer(new SolrResourceLoader(instanceDir));
SolrConfig cfg = solrConfigFilename == null ? new SolrConfig() : new SolrConfig(solrConfigFilename);
CoreDescriptor dcore = new CoreDescriptor(cores, "", ".");
CoreDescriptor dcore = new CoreDescriptor(cores, "", instanceDir);
SolrCore singlecore = new SolrCore(null, null, cfg, null, dcore);
abortOnConfigurationError = cfg.getBool(
"abortOnConfigurationError", abortOnConfigurationError);