svn commit: r421767 - /maven/plugins/trunk/maven-install-plugin/src/main/java/org/apache/maven/plugin/install/AbstractInstallMojo.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r421767 - /maven/plugins/trunk/maven-install-plugin/src/main/java/org/apache/maven/plugin/install/AbstractInstallMojo.java

brettporter
Administrator
Author: brett
Date: Thu Jul 13 17:35:14 2006
New Revision: 421767

URL: http://svn.apache.org/viewvc?rev=421767&view=rev
Log:
repository API was changed

Modified:
    maven/plugins/trunk/maven-install-plugin/src/main/java/org/apache/maven/plugin/install/AbstractInstallMojo.java

Modified: maven/plugins/trunk/maven-install-plugin/src/main/java/org/apache/maven/plugin/install/AbstractInstallMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-install-plugin/src/main/java/org/apache/maven/plugin/install/AbstractInstallMojo.java?rev=421767&r1=421766&r2=421767&view=diff
==============================================================================
--- maven/plugins/trunk/maven-install-plugin/src/main/java/org/apache/maven/plugin/install/AbstractInstallMojo.java (original)
+++ maven/plugins/trunk/maven-install-plugin/src/main/java/org/apache/maven/plugin/install/AbstractInstallMojo.java Thu Jul 13 17:35:14 2006
@@ -22,6 +22,7 @@
 import org.apache.maven.plugin.AbstractMojo;
 import org.apache.maven.plugin.MojoExecutionException;
 import org.apache.maven.repository.digest.Digester;
+import org.apache.maven.repository.digest.DigesterException;
 import org.codehaus.plexus.util.FileUtils;
 
 import java.io.File;
@@ -117,10 +118,14 @@
         {
             throw new MojoExecutionException( "Error in algorithm", e );
         }
+        catch( DigesterException e )
+        {
+            throw new MojoExecutionException( e.getMessage(), e );
+        }
     }
 
     protected String getChecksum( File file, String algo )
-        throws NoSuchAlgorithmException, IOException
+        throws NoSuchAlgorithmException, IOException, DigesterException
     {
         return digester.createChecksum( file, algo );
     }