You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by er...@apache.org on 2013/04/30 15:27:03 UTC
svn commit: r1477621 -
/lucene/dev/trunk/solr/core/src/java/org/apache/solr/core/SolrCoreDiscoverer.java
Author: erick
Date: Tue Apr 30 13:27:03 2013
New Revision: 1477621
URL: http://svn.apache.org/r1477621
Log:
SOLR-4773, discovery mode needed a change to instanceDir
Modified:
lucene/dev/trunk/solr/core/src/java/org/apache/solr/core/SolrCoreDiscoverer.java
Modified: lucene/dev/trunk/solr/core/src/java/org/apache/solr/core/SolrCoreDiscoverer.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/java/org/apache/solr/core/SolrCoreDiscoverer.java?rev=1477621&r1=1477620&r2=1477621&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/java/org/apache/solr/core/SolrCoreDiscoverer.java (original)
+++ lucene/dev/trunk/solr/core/src/java/org/apache/solr/core/SolrCoreDiscoverer.java Tue Apr 30 13:27:03 2013
@@ -54,7 +54,7 @@ public class SolrCoreDiscoverer {
for (File childFile : file.listFiles()) {
// This is a little tricky, we are asking if core.properties exists in a child directory of the directory passed
// in. In other words we're looking for core.properties in the grandchild directories of the parameter passed
- // in. That allows us to gracefully top recursing deep but continue looking wide.
+ // in. That allows us to gracefully stop recursing deep but continue looking wide.
File propFile = new File(childFile, CORE_PROP_FILE);
if (propFile.exists()) { // Stop looking after processing this file!
addCore(container, childFile, propFile, coreDescriptorMap);
@@ -75,7 +75,6 @@ public class SolrCoreDiscoverer {
} finally {
IOUtils.closeQuietly(is);
}
-
Properties props = new Properties();
for (String prop : propsOrig.stringPropertyNames()) {
props.put(prop, PropertiesUtil.substituteProperty(propsOrig.getProperty(prop), null));
@@ -83,8 +82,7 @@ public class SolrCoreDiscoverer {
// Too much of the code depends on this value being here, but it is NOT supported in discovery mode, so
// ignore it if present in the core.properties file.
- System.out.println("SET INST DIR:" + childFile.getPath());
- props.setProperty(CoreDescriptor.CORE_INSTDIR, childFile.getPath());
+ props.setProperty(CoreDescriptor.CORE_INSTDIR, childFile.getCanonicalPath());
if (props.getProperty(CoreDescriptor.CORE_NAME) == null) {
// Should default to this directory