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
This commit is contained in:
Uwe Schindler 2009-11-30 20:47:44 +00:00
parent 09fd7abd7a
commit c155a0c477
1 changed files with 2 additions and 1 deletions

View File

@ -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";
}
}