Commits

John Oxley committed bfae83e

Make Digest extend AbstractMojo

Comments (0)

Files changed (1)

src/main/java/org/bitbucket/joxley/mavengetdown/Digest.java

 package org.bitbucket.joxley.mavengetdown;
 
 import java.io.File;
+import java.io.IOException;
+
+import org.apache.maven.plugin.AbstractMojo;
 
 import com.threerings.getdown.tools.Digester;
 
  * 
  * @goal digest
  */
-public class Digest {
+public class Digest extends AbstractMojo {
 	/**
 	 * Application directory
 	 * 
 	 */
 	private File appdir;
 
-	public void execute() throws Exception {
-		Digester.createDigest(appdir);
+	public void execute() {
+		try {
+			Digester.createDigest(appdir);
+		} catch (IOException e) {
+			getLog().error(e);
+		}
 	}
 }