Search in sources :

Example 1 with GeneratedFileWriter

use of org.kie.kogito.codegen.core.utils.GeneratedFileWriter in project kogito-runtimes by kiegroup.

the class AbstractKieMojo method writeGeneratedFile.

protected void writeGeneratedFile(GeneratedFile generatedFile) {
    GeneratedFileWriter writer = new GeneratedFileWriter(outputDirectory.toPath(), generatedSources.toPath(), generatedResources.toPath(), getSourcesPath().toPath());
    getLog().info("Generating: " + generatedFile.relativePath());
    writer.write(generatedFile);
}
Also used : GeneratedFileWriter(org.kie.kogito.codegen.core.utils.GeneratedFileWriter)

Aggregations

GeneratedFileWriter (org.kie.kogito.codegen.core.utils.GeneratedFileWriter)1