Update of /var/cvs/contributions/lucene/src/org/mmbase/module/lucene
In directory james.mmbase.org:/tmp/cvs-serv15438/src/org/mmbase/module/lucene
Modified Files:
Lucene.java
Log Message:
fix issue with different getBinaryFileBasePath version in 1.8 and 1.9
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.110
retrieving revision 1.111
diff -u -b -r1.110 -r1.111
--- Lucene.java 11 Apr 2008 08:11:34 -0000 1.110
+++ Lucene.java 11 Apr 2008 12:24:04 -0000 1.111
@@ -48,7 +48,7 @@
*
* @author Pierre van Rooden
* @author Michiel Meeuwissen
- * @version $Id: Lucene.java,v 1.110 2008/04/11 08:11:34 michiel Exp $
+ * @version $Id: Lucene.java,v 1.111 2008/04/11 12:24:04 pierre Exp $
**/
public class Lucene extends ReloadableModule implements NodeEventListener,
RelationEventListener, IdEventListener {
@@ -662,7 +662,12 @@
try {
DatabaseStorageManagerFactory dsmf =
(DatabaseStorageManagerFactory)mmbase.getStorageManagerFactory();
indexPath =
dsmf.getBinaryFileBasePath().toString();
- if(indexPath != null) indexPath = indexPath +
dsmf.getDatabaseName() + File.separator + "lucene";
+ if (indexPath != null) { // this test is needed
for compatibility betwen 1.8 and 1.9
+ if (! indexPath.endsWith(File.separator)) {
+ indexPath += File.separator;
+ }
+ indexPath = indexPath + dsmf.getDatabaseName()
+ File.separator + "lucene";
+ }
} catch(Exception e){}
}
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs