From c155a0c47717662832c19a5a1351385fe819d950 Mon Sep 17 00:00:00 2001 From: Uwe Schindler Date: Mon, 30 Nov 2009 20:47:44 +0000 Subject: [PATCH] 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. git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@885582 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/lucene/benchmark/byTask/TestPerfTasksLogic.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/benchmark/src/test/org/apache/lucene/benchmark/byTask/TestPerfTasksLogic.java b/contrib/benchmark/src/test/org/apache/lucene/benchmark/byTask/TestPerfTasksLogic.java index 65152ff2686..4719eccb4d1 100755 --- a/contrib/benchmark/src/test/org/apache/lucene/benchmark/byTask/TestPerfTasksLogic.java +++ b/contrib/benchmark/src/test/org/apache/lucene/benchmark/byTask/TestPerfTasksLogic.java @@ -851,6 +851,7 @@ public class TestPerfTasksLogic extends LuceneTestCase { } 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"; } }