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 StartCommand.java StopCommand.java UndeployCommand.java
Date Thu, 09 Sep 2004 14:14:42 GMT
djencks     2004/09/09 07:14:42

  Modified:    modules/deployment/src/java/org/apache/geronimo/deployment/plugin/local
                        StartCommand.java StopCommand.java
                        UndeployCommand.java
  Log:
  Show stack trace in failures so some clue about what went wrong is available
  
  Revision  Changes    Path
  1.6       +7 -2      incubator-geronimo/modules/deployment/src/java/org/apache/geronimo/deployment/plugin/local/StartCommand.java
  
  Index: StartCommand.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/deployment/src/java/org/apache/geronimo/deployment/plugin/local/StartCommand.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- StartCommand.java	2 Jun 2004 06:50:41 -0000	1.5
  +++ StartCommand.java	9 Sep 2004 14:14:41 -0000	1.6
  @@ -18,6 +18,8 @@
   package org.apache.geronimo.deployment.plugin.local;
   
   import java.net.URI;
  +import java.io.StringWriter;
  +import java.io.PrintWriter;
   import javax.enterprise.deploy.shared.CommandType;
   import javax.enterprise.deploy.spi.TargetModuleID;
   
  @@ -49,7 +51,10 @@
               }
               complete("Completed");
           } catch (Exception e) {
  -            fail(e.getMessage());
  +            StringWriter writer = new StringWriter();
  +            PrintWriter printWriter = new PrintWriter(writer);
  +            e.printStackTrace(printWriter);
  +            fail(writer.toString());
           }
       }
   }
  
  
  
  1.8       +7 -2      incubator-geronimo/modules/deployment/src/java/org/apache/geronimo/deployment/plugin/local/StopCommand.java
  
  Index: StopCommand.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/deployment/src/java/org/apache/geronimo/deployment/plugin/local/StopCommand.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- StopCommand.java	2 Jun 2004 06:50:41 -0000	1.7
  +++ StopCommand.java	9 Sep 2004 14:14:41 -0000	1.8
  @@ -18,6 +18,8 @@
   package org.apache.geronimo.deployment.plugin.local;
   
   import java.net.URI;
  +import java.io.StringWriter;
  +import java.io.PrintWriter;
   import javax.enterprise.deploy.shared.CommandType;
   import javax.enterprise.deploy.spi.TargetModuleID;
   
  @@ -49,7 +51,10 @@
               }
               complete("Completed");
           } catch (Exception e) {
  -            fail(e.getMessage());
  +            StringWriter writer = new StringWriter();
  +            PrintWriter printWriter = new PrintWriter(writer);
  +            e.printStackTrace(printWriter);
  +            fail(writer.toString());
           }
       }
   }
  
  
  
  1.2       +7 -2      incubator-geronimo/modules/deployment/src/java/org/apache/geronimo/deployment/plugin/local/UndeployCommand.java
  
  Index: UndeployCommand.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/deployment/src/java/org/apache/geronimo/deployment/plugin/local/UndeployCommand.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- UndeployCommand.java	24 Jun 2004 02:50:13 -0000	1.1
  +++ UndeployCommand.java	9 Sep 2004 14:14:41 -0000	1.2
  @@ -17,6 +17,8 @@
   package org.apache.geronimo.deployment.plugin.local;
   
   import java.net.URI;
  +import java.io.StringWriter;
  +import java.io.PrintWriter;
   import javax.enterprise.deploy.spi.TargetModuleID;
   import javax.enterprise.deploy.shared.CommandType;
   import javax.management.ObjectName;
  @@ -55,7 +57,10 @@
               }
               complete("Completed");
           } catch (Exception e) {
  -            fail(e.getMessage());
  +            StringWriter writer = new StringWriter();
  +            PrintWriter printWriter = new PrintWriter(writer);
  +            e.printStackTrace(printWriter);
  +            fail(writer.toString());
           }
       }
   }
  
  
  

Mime
View raw message