org.bitbucket.joxley.mavengetdown.Digest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of getdown-maven-plugin Show documentation
Show all versions of getdown-maven-plugin Show documentation
A maven build plugin for generating getdown digest file.
The newest version!
package org.bitbucket.joxley.mavengetdown;
import com.threerings.getdown.tools.Digester;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import java.io.File;
import java.io.IOException;
/**
* Create the digest
*
* @goal digest
*/
public class Digest extends AbstractMojo {
/**
* Application directory
*
* @parameter default-value="target"
*/
private File appdir;
public void execute() throws MojoExecutionException {
try {
Digester.createDigest(appdir);
} catch (IOException e) {
throw new MojoExecutionException("Failed to create digest", e);
}
}
}