lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From uschind...@apache.org
Subject svn commit: r885582 - /lucene/java/trunk/contrib/benchmark/src/test/org/apache/lucene/benchmark/byTask/TestPerfTasksLogic.java
Date Mon, 30 Nov 2009 20:47:44 GMT
Author: uschindler
Date: Mon Nov 30 20:47:44 2009
New Revision: 885582

URL: http://svn.apache.org/viewvc?rev=885582&view=rev
Log:
LUCENE-1844: Fix problem in windows, because the path separator \ is also an escape for properties
files. Simple fix is to replace all backslashs by forward slashes in the getReuters20File.

Modified:
    lucene/java/trunk/contrib/benchmark/src/test/org/apache/lucene/benchmark/byTask/TestPerfTasksLogic.java

Modified: lucene/java/trunk/contrib/benchmark/src/test/org/apache/lucene/benchmark/byTask/TestPerfTasksLogic.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/benchmark/src/test/org/apache/lucene/benchmark/byTask/TestPerfTasksLogic.java?rev=885582&r1=885581&r2=885582&view=diff
==============================================================================
--- lucene/java/trunk/contrib/benchmark/src/test/org/apache/lucene/benchmark/byTask/TestPerfTasksLogic.java
(original)
+++ lucene/java/trunk/contrib/benchmark/src/test/org/apache/lucene/benchmark/byTask/TestPerfTasksLogic.java
Mon Nov 30 20:47:44 2009
@@ -851,6 +851,7 @@
   }
 
   private static String getReuters20LinesFile() {
-    return System.getProperty("lucene.common.dir") + "/contrib/benchmark/src/test/org/apache/lucene/benchmark/reuters.first20.lines.txt";
+    return System.getProperty("lucene.common.dir").replace('\\','/') +
+      "/contrib/benchmark/src/test/org/apache/lucene/benchmark/reuters.first20.lines.txt";
   }  
 }



Mime
View raw message