hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r389633 - /lucene/hadoop/trunk/src/java/org/apache/hadoop/conf/Configuration.java
Date Wed, 29 Mar 2006 00:01:48 GMT
Author: cutting
Date: Tue Mar 28 16:01:47 2006
New Revision: 389633

URL: http://svn.apache.org/viewcvs?rev=389633&view=rev
Log:
Always return an absolute pathname for local files.  This fixes
problems on Windows, where a path specified with "/foo" in a config
file is sometimes treated as a relative path.

Modified:
    lucene/hadoop/trunk/src/java/org/apache/hadoop/conf/Configuration.java

Modified: lucene/hadoop/trunk/src/java/org/apache/hadoop/conf/Configuration.java
URL: http://svn.apache.org/viewcvs/lucene/hadoop/trunk/src/java/org/apache/hadoop/conf/Configuration.java?rev=389633&r1=389632&r2=389633&view=diff
==============================================================================
--- lucene/hadoop/trunk/src/java/org/apache/hadoop/conf/Configuration.java (original)
+++ lucene/hadoop/trunk/src/java/org/apache/hadoop/conf/Configuration.java Tue Mar 28 16:01:47
2006
@@ -276,7 +276,7 @@
       File file = new File(dirs[index], path);
       File dir = file.getParentFile();
       if (dir.exists() || dir.mkdirs()) {
-        return file;
+        return file.getAbsoluteFile();
       }
     }
     throw new IOException("No valid local directories in property: "+dirsProp);



Mime
View raw message