All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.circumflex.maven.GenerateStaticHtmlMojo Maven / Gradle / Ivy

There is a newer version: 2.5
Show newest version
package ru.circumflex.maven;

import org.apache.maven.plugin.MojoExecutionException;
import java.io.File;
import ru.circumflex.freemarker.*;

/**
 * @goal static-html
 */
public class GenerateStaticHtmlMojo extends AbstractCircumflexMojo {

  /**
   * @parameter expression="${templatesRoot}"
   */
  private File templatesRoot;

  /**
   * @parameter expression="${sourcePath}"
   */
  private String sourcePath;

  /**
   * @parameter expression="${targetDir}"
   */
  private File targetDir;

  public void execute() throws MojoExecutionException {
    prepareClassLoader();
    new StaticHtmlGenerator(templatesRoot, sourcePath, targetDir).generate();
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy