hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r381794 - /lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/JobConf.java
Date Tue, 28 Feb 2006 22:13:03 GMT
Author: cutting
Date: Tue Feb 28 14:13:01 2006
New Revision: 381794

URL: http://svn.apache.org/viewcvs?rev=381794&view=rev
Log:
Un-escape containing jar's path, which is URL-encoded.  This fixes
things primarily on Windows, where paths are likely to contain spaces.

Modified:
    lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/JobConf.java

Modified: lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/JobConf.java
URL: http://svn.apache.org/viewcvs/lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/JobConf.java?rev=381794&r1=381793&r2=381794&view=diff
==============================================================================
--- lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/JobConf.java (original)
+++ lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/JobConf.java Tue Feb 28 14:13:01
2006
@@ -26,6 +26,7 @@
 import java.util.Enumeration;
 
 import java.net.URL;
+import java.net.URLDecoder;
 
 import org.apache.hadoop.fs.FileUtil;
 import org.apache.hadoop.conf.Configuration;
@@ -309,6 +310,7 @@
           if (toReturn.startsWith("file:")) {
             toReturn = toReturn.substring("file:".length());
           }
+          toReturn = URLDecoder.decode(toReturn, "UTF-8");
           return toReturn.replaceAll("!.*$", "");
         }
       }



Mime
View raw message