use of org.jboss.forge.roaster.model.source.JavaDocSource in project Entitas-Java by Rubentxu.
the class CodeGeneratorOld method writeFiles.
public void writeFiles(String directoryName, List<JavaClassSource> files) {
File directory = new File(String.valueOf(directoryName));
if (!directory.exists()) {
directory.mkdir();
}
files.stream().forEach((file) -> {
JavaDocSource javaDoc = file.getJavaDoc();
javaDoc.setFullText(String.format(AUTO_GENERATED_HEADER_FORMAT, "CodeGenerator"));
toFile(file, directory);
});
}
Aggregations