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:
Steven Rowe 2013-01-29 05:38:40 +00:00
parent 679cf6d5b3
commit 0ce4cdde5a
1 changed files with 1 additions and 1 deletions

View File

@ -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 + ")",