You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by om...@apache.org on 2007/10/02 22:37:08 UTC
svn commit: r581375 - in /lucene/hadoop/trunk: CHANGES.txt
src/java/org/apache/hadoop/mapred/StatusHttpServer.java
Author: omalley
Date: Tue Oct 2 13:37:08 2007
New Revision: 581375
URL: http://svn.apache.org/viewvc?rev=581375&view=rev
Log:
HADOOP-1959. Use "/" instead of File.separator in StatusHttpServer to allow
running unit tests on windows. Contributed by jimk.
Modified:
lucene/hadoop/trunk/CHANGES.txt
lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/StatusHttpServer.java
Modified: lucene/hadoop/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/CHANGES.txt?rev=581375&r1=581374&r2=581375&view=diff
==============================================================================
--- lucene/hadoop/trunk/CHANGES.txt (original)
+++ lucene/hadoop/trunk/CHANGES.txt Tue Oct 2 13:37:08 2007
@@ -221,6 +221,9 @@
HADOOP-1934. Fix the platform name on Mac to use underscores rather than
spaces. (omalley)
+ HADOOP-1959. Use "/" instead of File.separator in the StatusHttpServer.
+ (jimk via omalley)
+
IMPROVEMENTS
HADOOP-1908. Restructure data node code so that block sending and
Modified: lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/StatusHttpServer.java
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/StatusHttpServer.java?rev=581375&r1=581374&r2=581375&view=diff
==============================================================================
--- lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/StatusHttpServer.java (original)
+++ lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/StatusHttpServer.java Tue Oct 2 13:37:08 2007
@@ -17,7 +17,6 @@
*/
package org.apache.hadoop.mapred;
-import java.io.File;
import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintWriter;
@@ -91,7 +90,7 @@
// set up the context for "/" jsp files
webAppContext =
- webServer.addWebApplication("/", appDir + File.separator + name);
+ webServer.addWebApplication("/", appDir + "/" + name);
addServlet("stacks", "/stacks", StackServlet.class);
addServlet("reducegraph", "/taskgraph", TaskGraphServlet.class);
}