SOLR-720 -- Write container properties before <cores> element rather than after it.

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@688411 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Shalin Shekhar Mangar 2008-08-23 20:52:18 +00:00
parent 8d1ae0a3d0
commit 2f9694f07b
1 changed files with 5 additions and 4 deletions

View File

@ -585,15 +585,16 @@ public class CoreContainer
writer.write("false'"); writer.write("false'");
} }
writer.write(">\n"); writer.write(">\n");
writer.write("<cores adminPath='");
XML.escapeAttributeValue(adminPath, writer);
writer.write('\'');
writer.write(">\n");
if (containerProperties != null && !containerProperties.isEmpty()) { if (containerProperties != null && !containerProperties.isEmpty()) {
writeProperties(writer, containerProperties); writeProperties(writer, containerProperties);
} }
writer.write("<cores adminPath='");
XML.escapeAttributeValue(adminPath, writer);
writer.write('\'');
writer.write(">\n");
Map<SolrCore, LinkedList<String>> aliases = new HashMap<SolrCore,LinkedList<String>>(); Map<SolrCore, LinkedList<String>> aliases = new HashMap<SolrCore,LinkedList<String>>();
synchronized(cores) { synchronized(cores) {