SOLR-333: Changed distributiondump.jsp to use Solr HOME instead of CWD to get path

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@566340 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
William Au 2007-08-15 20:55:14 +00:00
parent 71eb9a40d2
commit c56381bdab
2 changed files with 4 additions and 3 deletions

View File

@ -156,6 +156,7 @@ Bug Fixes
10. SOLR-136: Snappuller - "date -d" and locales don't mix. (Jürgen Hermann via bill)
11. SOLR-133: Changed distributiondump.jsp to use Solr HOME instead of CWD to set path.
Other Changes
1. SOLR-135: Moved common classes to org.apache.solr.common and altered the

View File

@ -29,7 +29,7 @@
<%@include file="header.jsp" %>
<%
File slaveinfo = new File(cwd + "/solr/logs/snappuller.status");
File slaveinfo = new File(solrHome + "logs/snappuller.status");
StringBuffer buffer = new StringBuffer();
StringBuffer buffer2 = new StringBuffer();
@ -38,7 +38,7 @@
if (slaveinfo.canRead()) {
// Slave instance
mode = "Slave";
File slavevers = new File(cwd + "/solr/logs/snapshot.current");
File slavevers = new File(solrHome + "logs/snapshot.current");
BufferedReader inforeader = new BufferedReader(new FileReader(slaveinfo));
BufferedReader versreader = new BufferedReader(new FileReader(slavevers));
buffer.append("<tr>\n" +
@ -61,7 +61,7 @@
} else {
// Master instance
mode = "Master";
File masterdir = new File(cwd + "/solr/logs/clients");
File masterdir = new File(solrHome + "logs/clients");
FilenameFilter sfilter = new FilenameFilter() {
public boolean accept(File dir, String name) {
return name.startsWith("snapshot.status");