jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r718250 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/directory/FSDirectoryManager.java
Date Mon, 17 Nov 2008 14:49:26 GMT
Author: mreutegg
Date: Mon Nov 17 06:49:25 2008
New Revision: 718250

URL: http://svn.apache.org/viewvc?rev=718250&view=rev
Log:
JCR-1747: org.apache.jackrabbit.core.query.lucene.SearchIndex with in-memory lucene index
- fix issue with canonicalizing path on unix platform

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/directory/FSDirectoryManager.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/directory/FSDirectoryManager.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/directory/FSDirectoryManager.java?rev=718250&r1=718249&r2=718250&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/directory/FSDirectoryManager.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/directory/FSDirectoryManager.java
Mon Nov 17 06:49:25 2008
@@ -55,7 +55,12 @@
      */
     public Directory getDirectory(String name)
             throws IOException {
-        File dir = new File(baseDir, name);
+        File dir;
+        if (name.equals(".")) {
+            dir = baseDir;
+        } else {
+            dir = new File(baseDir, name);
+        }
         return FSDirectory.getDirectory(dir, new NativeFSLockFactory(dir));
     }
 



Mime
View raw message