if (project.getDescription() != null) {
properties.put("projectDescription", project.getDescription());
}
camelMetaDir.mkdirs();
File outFile = new File(camelMetaDir, "language.properties");
<BUG>try {
properties.store(new FileWriter(outFile), "Generated by camel-package-maven-plugin");

buildContext.refresh(outFile);
log.info("Generated " + outFile + " containing " + count + " Camel " + (count > 1 ? "languages: " : "language: ") + names);</BUG>
if (projectHelper != null) {

if (project.getDescription() != null) {
properties.put("projectDescription", project.getDescription());
}
camelMetaDir.mkdirs();
File outFile = new File(camelMetaDir, "language.properties");
try {
try(OutputStream os = buildContext.newFileOutputStream(outFile)) {
properties.store(os, "Generated by camel-package-maven-plugin");
}
log.info("Generated " + outFile + " containing " + count + " Camel " + (count > 1 ? "languages: " : "language: ") + names);
