mirror of https://github.com/apache/lucene.git
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:
parent
09fd7abd7a
commit
c155a0c477
|
@ -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";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue