mirror of https://github.com/apache/lucene.git
Convert backslashes in Windows paths to forward slashes - otherwise StreamTokenizer interprets the backslashes as escape chars, and "work.dir" can't be found.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1439751 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
679cf6d5b3
commit
0ce4cdde5a
|
@ -1070,7 +1070,7 @@ public class TestPerfTasksLogic extends BenchmarkTestCase {
|
|||
String algLines[] = {
|
||||
"content.source=org.apache.lucene.benchmark.byTask.feeds.LineDocSource",
|
||||
"docs.file=" + getReuters20LinesFile(),
|
||||
"work.dir=" + getWorkDir().getAbsolutePath(),
|
||||
"work.dir=" + getWorkDir().getAbsolutePath().replaceAll("\\\\", "/"), // Fix Windows path
|
||||
"content.source.forever=false",
|
||||
"directory=RAMDirectory",
|
||||
"AnalyzerFactory(name:'" + singleQuoteEscapedName + "', " + params + ")",
|
||||
|
|
Loading…
Reference in New Issue