fix scalatra on Windows (#16395)

This commit is contained in:
martin-mfg 2023-08-25 03:25:22 +02:00 committed by GitHub
parent 26899ee59b
commit ad7ce7cba6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -200,6 +200,6 @@ public class ScalatraServerCodegen extends AbstractScalaCodegen implements Codeg
}
private String sourceFolderByPackage(String packageName) {
return sourceFolder + File.separator + packageName.replaceAll("[.]", File.separator);
return sourceFolder + File.separator + packageName.replace('.', File.separatorChar);
}
}