Update of /var/cvs/contributions/lucene/src/org/mmbase/module/lucene
In directory james.mmbase.org:/tmp/cvs-serv20363
Modified Files:
Lucene.java
Log Message:
hack, to get backslashes working on windows
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.130
retrieving revision 1.131
diff -u -b -r1.130 -r1.131
--- Lucene.java 12 Feb 2009 13:52:09 -0000 1.130
+++ Lucene.java 4 Mar 2009 18:02:46 -0000 1.131
@@ -48,7 +48,7 @@
*
* @author Pierre van Rooden
* @author Michiel Meeuwissen
- * @version $Id: Lucene.java,v 1.130 2009/02/12 13:52:09 michiel Exp $
+ * @version $Id: Lucene.java,v 1.131 2009/03/04 18:02:46 sdeboer Exp $
**/
public class Lucene extends ReloadableModule implements NodeEventListener,
RelationEventListener, IdEventListener, AssignmentEvents.Listener {
@@ -681,7 +681,11 @@
indexPath = path;
indexPath = indexPath.replace("$BINARYFILEBASEPATH",
binaryFileBasePath);
indexPath = indexPath.replace("$DATABASE",
databaseName);
- indexPath = indexPath.replaceAll("/+", File.separator);
+
+ //hack, to get backslashes working on windows
+ indexPath = indexPath.replaceAll("/+", "/");
+ indexPath = indexPath.replace('/', File.separatorChar);
+
log.service("found module parameter for lucene index
path : " + indexPath);
} else {
indexPath = binaryFileBasePath + "lucene" +
File.separator + databaseName;
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs