in doxia-site-renderer/src/main/java/org/apache/maven/doxia/siterenderer/DefaultSiteRenderer.java [391:409]
private void saveVelocityProcessedContent(
DocumentRenderingContext docRenderingContext, SiteRenderingContext siteContext, String doxiaContent)
throws IOException {
if (!siteContext.getProcessedContentOutput().exists()) {
siteContext.getProcessedContentOutput().mkdirs();
}
String inputName = docRenderingContext.getInputName();
// Remove .vm suffix
File outputFile =
new File(siteContext.getProcessedContentOutput(), inputName.substring(0, inputName.length() - 3));
File outputParent = outputFile.getParentFile();
if (!outputParent.exists()) {
outputParent.mkdirs();
}
FileUtils.fileWrite(outputFile, siteContext.getInputEncoding(), doxiaContent);
}