This commit is contained in:
Andrea Cavalli 2022-07-19 01:53:39 +02:00
parent 1ba8af52ef
commit 41eb7dde59

View File

@ -2912,6 +2912,9 @@ public class SourcesGenerator {
for (String part : classPackage.split("\\.")) {
outPath = outPath.resolve(part);
}
if (Files.notExists(outPath)) {
Files.createDirectories(outPath);
}
var outJavaFile = outPath.resolve(typeSpec.name + ".java");
JavaFile.builder(classPackage, typeSpec).build().writeTo(sb);
String newFile = sb.toString();