Skip to content

Commit ad7ce7c

Browse files
authored
fix scalatra on Windows (#16395)
1 parent 26899ee commit ad7ce7c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ScalatraServerCodegen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,6 @@ public OperationsMap postProcessOperationsWithModels(OperationsMap objs, List<Mo
200200
}
201201

202202
private String sourceFolderByPackage(String packageName) {
203-
return sourceFolder + File.separator + packageName.replaceAll("[.]", File.separator);
203+
return sourceFolder + File.separator + packageName.replace('.', File.separatorChar);
204204
}
205205
}

0 commit comments

Comments
 (0)