geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject cvs commit: incubator-geronimo/modules/deployment/src/java/org/apache/geronimo/deployment/plugin/local DistributeCommand.java
Date Wed, 01 Sep 2004 16:35:25 GMT
djencks     2004/09/01 09:35:25

  Modified:    modules/deployment/src/java/org/apache/geronimo/deployment/plugin/local
                        DistributeCommand.java
  Log:
  If something goes wrong, show the details
  
  Revision  Changes    Path
  1.13      +7 -2      incubator-geronimo/modules/deployment/src/java/org/apache/geronimo/deployment/plugin/local/DistributeCommand.java
  
  Index: DistributeCommand.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/deployment/src/java/org/apache/geronimo/deployment/plugin/local/DistributeCommand.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- DistributeCommand.java	6 Jul 2004 05:36:12 -0000	1.12
  +++ DistributeCommand.java	1 Sep 2004 16:35:25 -0000	1.13
  @@ -22,6 +22,8 @@
   import java.io.IOException;
   import java.io.OutputStream;
   import java.io.FileOutputStream;
  +import java.io.StringWriter;
  +import java.io.PrintWriter;
   import java.util.Iterator;
   import java.util.Set;
   import java.net.URI;
  @@ -95,7 +97,10 @@
               addModule(moduleID);
               complete("Completed");
           } catch (Exception e) {
  -            fail(e.getMessage());
  +            StringWriter writer = new StringWriter();
  +            PrintWriter printWriter = new PrintWriter(writer);
  +            e.printStackTrace(printWriter);
  +            fail(writer.toString());
           } finally {
               if (spool) {
                   if (moduleArchive != null) {
  
  
  

Mime
View raw message