From 8e30720bed15634380e88b7d6ac8178e72b11098 Mon Sep 17 00:00:00 2001 From: ybonnel Date: Tue, 1 Jul 2014 11:25:18 +0200 Subject: [PATCH] Upgrade jbake to 2.3.0 --- pom.xml | 2 +- .../java/br/com/ingenieux/mojo/jbake/GenerateMojo.java | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 68e4ce35..9b209c05 100644 --- a/pom.xml +++ b/pom.xml @@ -124,7 +124,7 @@ org.jbake jbake-core - 2.2.1 + 2.3.0 org.apache.maven diff --git a/src/main/java/br/com/ingenieux/mojo/jbake/GenerateMojo.java b/src/main/java/br/com/ingenieux/mojo/jbake/GenerateMojo.java index 2f1e55ce..df002b28 100644 --- a/src/main/java/br/com/ingenieux/mojo/jbake/GenerateMojo.java +++ b/src/main/java/br/com/ingenieux/mojo/jbake/GenerateMojo.java @@ -40,10 +40,16 @@ public class GenerateMojo extends AbstractMojo { */ @Parameter(property = "jbake.inputDirectory", defaultValue = "${project.basedir}/src/main/jbake", required = true) protected File inputDirectory; + + /** + * Set if cache is present or clear + */ + @Parameter(property = "jbake.isClearCache", defaultValue = "false", required = true) + protected boolean isClearCache; public void execute() throws MojoExecutionException { try { - Oven oven = new Oven(inputDirectory, outputDirectory); + Oven oven = new Oven(inputDirectory, outputDirectory, isClearCache); oven.setupPaths(); oven.bake();