fixing replaceAll bug on windows with escaping paths, changed replaceAll() to replace()

This commit is contained in:
Danny Gershman
2013-05-30 15:35:47 -04:00
parent 154b2fdeca
commit e9fa4434f2
8 changed files with 17 additions and 17 deletions

View File

@@ -37,8 +37,8 @@ object CSharpPetstoreCodegen extends BasicCSharpGenerator {
// supporting classes
override def supportingFiles =
List(
("apiInvoker.mustache", destinationDir + java.io.File.separator + invokerPackage.get.replaceAll("\\.", java.io.File.separator) + java.io.File.separator, "ApiInvoker.cs"),
("apiException.mustache", destinationDir + java.io.File.separator + invokerPackage.get.replaceAll("\\.", java.io.File.separator) + java.io.File.separator, "ApiException.cs"),
("apiInvoker.mustache", destinationDir + java.io.File.separator + invokerPackage.get.replace(".", java.io.File.separator) + java.io.File.separator, "ApiInvoker.cs"),
("apiException.mustache", destinationDir + java.io.File.separator + invokerPackage.get.replace(".", java.io.File.separator) + java.io.File.separator, "ApiException.cs"),
("Newtonsoft.Json.dll", "samples/client/petstore/csharp/bin", "Newtonsoft.Json.dll"),
("compile.mustache", "samples/client/petstore/csharp", "compile.bat"))
}