use of org.jreleaser.util.JReleaserException in project jreleaser by jreleaser.
the class JReleaserTemplateTask method execute.
@Override
public void execute() throws BuildException {
Banner.display(new PrintWriter(System.out, true));
if (skip)
return;
try {
initLogger();
Path outputDirectory = getOutputDirectory().resolve("src").resolve("jreleaser");
Path output = TemplateGenerator.builder().logger(logger).distributionName(distributionName).distributionType(distributionType).packagerName(packagerName).announcerName(announcerName).outputDirectory(outputDirectory).overwrite(overwrite).snapshot(snapshot).build().generate();
if (null != output) {
logger.info("Template generated at {}", output.toAbsolutePath());
}
} catch (TemplateGenerationException e) {
logger.trace(e);
throw new JReleaserException("Unexpected error", e);
}
}
Aggregations