Update of /var/cvs/contributions/lucene/src/org/mmbase/module/lucene
In directory james.mmbase.org:/tmp/cvs-serv8862

Modified Files:
        Lucene.java 
Log Message:



See also: 
http://cvs.mmbase.org/viewcvs/contributions/lucene/src/org/mmbase/module/lucene


Index: Lucene.java
===================================================================
RCS file: 
/var/cvs/contributions/lucene/src/org/mmbase/module/lucene/Lucene.java,v
retrieving revision 1.115
retrieving revision 1.116
diff -u -b -r1.115 -r1.116
--- Lucene.java 28 Jul 2008 13:43:44 -0000      1.115
+++ Lucene.java 28 Jul 2008 13:56:06 -0000      1.116
@@ -48,7 +48,7 @@
  *
  * @author Pierre van Rooden
  * @author Michiel Meeuwissen
- * @version $Id: Lucene.java,v 1.115 2008/07/28 13:43:44 michiel Exp $
+ * @version $Id: Lucene.java,v 1.116 2008/07/28 13:56:06 michiel Exp $
  **/
 public class Lucene extends ReloadableModule implements NodeEventListener, 
RelationEventListener, IdEventListener, AssignmentEvents.Listener {
 
@@ -668,9 +668,9 @@
                     String path = getInitParameter("indexpath");
                     if (path != null) {
                         indexPath = path;
-                        indexPath.replace("$BINARYFILEBASEPATH", 
binaryFileBasePath);
-                        indexPath.replace("$DATABASE", databaseName);
-                        indexPath.replace("/", File.separator);
+                        indexPath = indexPath.replace("$BINARYFILEBASEPATH", 
binaryFileBasePath);
+                        indexPath = indexPath.replace("$DATABASE", 
databaseName);
+                        indexPath = indexPath.replaceAll("/+", File.separator);
                         log.service("found module parameter for lucene index 
path : " + indexPath);
                     } else {
                         indexPath = binaryFileBasePath + databaseName + 
File.separator + "lucene";
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to