Package org.jbake.app

Examples of org.jbake.app.Oven


  }

  protected void reRender() throws MojoExecutionException {
    try {
      // TODO: At some point, reuse Oven
      Oven oven = new Oven(inputDirectory, outputDirectory, isClearCache);

      oven.setupPaths();

      oven.bake();
    } catch (Exception e) {
      getLog().info("Oops", e);

      throw new MojoExecutionException("Failure when running: ", e);
    }
View Full Code Here


    new Main().run(args);
  }
 
  private void bake(LaunchOptions options) {
    try {
      Oven oven = new Oven(options.getSource(), options.getDestination(), options.isClearCache());
      oven.setupPaths();
      oven.bake();
      final List<String> errors = oven.getErrors();
      if (!errors.isEmpty()) {
        // TODO: decide, if we want the all error here
        System.err.println(MessageFormat.format("JBake failed with {0} errors:", errors.size()));
        int errNr = 1;
        for (String msg : errors) {
View Full Code Here

  @Parameter(property = "jbake.inputDirectory", defaultValue = "${project.basedir}/src/main/jbake", required = true)
  protected File inputDirectory;
 
  public void execute() throws MojoExecutionException {
    try {
      Oven oven = new Oven(inputDirectory, outputDirectory);
     
      oven.setupPaths();
      oven.bake();
    } catch (Exception e) {
      getLog().info("Oops", e);
     
      throw new MojoExecutionException("Failure when running: ", e);
    }
View Full Code Here

  @Parameter(property = "jbake.inputDirectory", defaultValue = "${project.basedir}/src/main/jbake", required = true)
  protected File inputDirectory;
 
  public void execute() throws MojoExecutionException {
    try {
      Oven oven = new Oven(inputDirectory, outputDirectory);
     
      oven.setupPaths();
      oven.bake();
    } catch (Exception e) {
      getLog().info("Oops", e);
     
      throw new MojoExecutionException("Failure when running: ", e);
    }
View Full Code Here

TOP

Related Classes of org.jbake.app.Oven

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.