hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r376489 - /lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/JobConf.java
Date Thu, 09 Feb 2006 23:36:15 GMT
Author: cutting
Date: Thu Feb  9 15:36:14 2006
New Revision: 376489

URL: http://svn.apache.org/viewcvs?rev=376489&view=rev
Log:
Make compatible with JDK 1.4.

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=376489&r1=376488&r2=376489&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 Thu Feb  9 15:36:14
2006
@@ -302,7 +302,7 @@
           itr.hasMoreElements();) {
         URL url = (URL) itr.nextElement();
         if ("jar".equals(url.getProtocol())) {
-          return url.getPath().replace("file:", "").replaceAll("!.*$", "");
+          return url.getPath().replaceFirst("file:", "").replaceAll("!.*$", "");
         }
       }
     } catch (IOException e) {



Mime
View raw message