final File outputDir = getOutputDirectory(locale);
getLog().info("Generating Sitemap.");
final W3CDateFormat dateFormat = new W3CDateFormat(Pattern.DAY);
final WebSitemapGenerator generator = WebSitemapGenerator.builder(project.getUrl(), outputDir).autoValidate(validate)
.dateFormat(dateFormat).build();
new Sitemap(getOutputEncoding(), i18n).generate(project, context.getDecoration(), generator, changeFreq);
final List<File> files = generator.write();
for (final File file : files) {
getLog().info("Generated Sitemap: " + file.getPath());
}
}