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

org.bitbucket.joxley.mavengetdown.Digest Maven / Gradle / Ivy

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);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy