Skip to content

Commit

Permalink
Upgrade jbake to 2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ybonnel committed Jul 1, 2014
1 parent 8be2128 commit 8e30720
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
<dependency>
<groupId>org.jbake</groupId>
<artifactId>jbake-core</artifactId>
<version>2.2.1</version>
<version>2.3.0</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
Expand Down
8 changes: 7 additions & 1 deletion src/main/java/br/com/ingenieux/mojo/jbake/GenerateMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 8e30720

Please sign in to comment.