Fix compiler plugin cli tests with colons in .args on Windows

This commit is contained in:
Yan Zhulanow
2015-03-15 03:33:36 +03:00
parent 7955504089
commit b0125a3626
3 changed files with 9 additions and 4 deletions
@@ -100,8 +100,13 @@ public class CliBaseTest {
if (arg.isEmpty()) {
return null;
}
return arg
// Do not replace : after \ (used in compiler plugin tests)
String argsWithColonsReplaced = arg
.replace("\\:", "$COLON$")
.replace(":", File.pathSeparator)
.replace("$COLON$", ":");
return argsWithColonsReplaced
.replace("$TEMP_DIR$", tempDir)
.replace("$TESTDATA_DIR$", testDataDir);
}