maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r1298626 - /maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/main/java/org/apache/maven/plugins/svnpubsub/SvnpubsubPublishMojo.java
Date Thu, 08 Mar 2012 22:29:45 GMT
Author: hboutemy
Date: Thu Mar  8 22:29:45 2012
New Revision: 1298626

URL: http://svn.apache.org/viewvc?rev=1298626&view=rev
Log:
keep root cause exceptions

Modified:
    maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/main/java/org/apache/maven/plugins/svnpubsub/SvnpubsubPublishMojo.java

Modified: maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/main/java/org/apache/maven/plugins/svnpubsub/SvnpubsubPublishMojo.java
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/main/java/org/apache/maven/plugins/svnpubsub/SvnpubsubPublishMojo.java?rev=1298626&r1=1298625&r2=1298626&view=diff
==============================================================================
--- maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/main/java/org/apache/maven/plugins/svnpubsub/SvnpubsubPublishMojo.java
(original)
+++ maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/main/java/org/apache/maven/plugins/svnpubsub/SvnpubsubPublishMojo.java
Thu Mar  8 22:29:45 2012
@@ -20,7 +20,6 @@ package org.apache.maven.plugins.svnpubs
  */
 
 import java.io.BufferedReader;
-import java.io.BufferedWriter;
 import java.io.File;
 import java.io.FileInputStream;
 import java.io.FileOutputStream;
@@ -48,7 +47,7 @@ import org.apache.maven.shared.release.R
 import org.apache.maven.shared.release.scm.ReleaseScmRepositoryException;
 
 /**
- * Compare the list of files now on disk to the original inventory. Fire off scm adds and
deletes as needed.
+ * Compare the list of files now on disk to the original inventory, then fire off scm adds
and deletes as needed.
  * 
  * @goal publish
  * @phase post-site
@@ -132,6 +131,7 @@ public class SvnpubsubPublishMojo
 
         // read in the list left behind by prepare; fail if it's not there.
         readInventory();
+
         // setup the scm plugin with help from release plugin utilities
         try
         {
@@ -139,11 +139,11 @@ public class SvnpubsubPublishMojo
         }
         catch ( ReleaseScmRepositoryException e )
         {
-            throw new MojoExecutionException( e.getMessage() );
+            throw new MojoExecutionException( e.getMessage(), e );
         }
         catch ( ReleaseExecutionException e )
         {
-            throw new MojoExecutionException( e.getMessage() );
+            throw new MojoExecutionException( e.getMessage(), e );
         }
 
         // what files are in stock now?
@@ -282,7 +282,7 @@ public class SvnpubsubPublishMojo
             }
             catch ( IOException e )
             {
-                throw new MojoFailureException( "Failed to normalize newlines in " + f.getAbsolutePath()
);
+                throw new MojoFailureException( "Failed to normalize newlines in " + f.getAbsolutePath(),
e );
             }
         }
 



Mime
View raw message