jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r1311705 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/mk/fs/FilePathDisk.java
Date Tue, 10 Apr 2012 13:13:01 GMT
Author: thomasm
Date: Tue Apr 10 13:13:00 2012
New Revision: 1311705

URL: http://svn.apache.org/viewvc?rev=1311705&view=rev
Log:
OAK-56 File system abstraction (fix isAbsolute on Windows)

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/mk/fs/FilePathDisk.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/mk/fs/FilePathDisk.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/mk/fs/FilePathDisk.java?rev=1311705&r1=1311704&r2=1311705&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/mk/fs/FilePathDisk.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/mk/fs/FilePathDisk.java
Tue Apr 10 13:13:00 2012
@@ -200,6 +200,10 @@ public class FilePathDisk extends FilePa
 
     @Override
     public boolean isAbsolute() {
+        if (File.separatorChar != '/') {
+            // Windows requires backslashes for isAbsolute() to work
+            name = name.replace('/', File.separatorChar);
+        }
         return new File(name).isAbsolute();
     }
 



Mime
View raw message