continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tryg...@apache.org
Subject svn commit: r170007 - /maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/registration/socket/UrlSocketRegistrar.java /maven/continuum/trunk/continuum-xmlrpc/src/main/java/org/apache/maven/continuum/xmlrpc/DefaultContinuumXmlRpc.java
Date Fri, 13 May 2005 11:23:24 GMT
Author: trygvis
Date: Fri May 13 04:23:23 2005
New Revision: 170007

URL: http://svn.apache.org/viewcvs?rev=170007&view=rev
Log: (empty)

Modified:
    maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/registration/socket/UrlSocketRegistrar.java
    maven/continuum/trunk/continuum-xmlrpc/src/main/java/org/apache/maven/continuum/xmlrpc/DefaultContinuumXmlRpc.java

Modified: maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/registration/socket/UrlSocketRegistrar.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/registration/socket/UrlSocketRegistrar.java?rev=170007&r1=170006&r2=170007&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/registration/socket/UrlSocketRegistrar.java
(original)
+++ maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/registration/socket/UrlSocketRegistrar.java
Fri May 13 04:23:23 2005
@@ -19,6 +19,8 @@
 import java.io.IOException;
 import java.io.InputStream;
 import java.io.OutputStream;
+import java.io.StringWriter;
+import java.io.PrintWriter;
 import java.net.URL;
 import java.util.Iterator;
 import java.util.List;
@@ -67,11 +69,28 @@
         {
             socket.writeLine( "ERROR" );
 
-            String stackTrace = ContinuumUtils.getExceptionStackTrace( ex );
+            String stackTrace = getExceptionStackTrace( ex );
 
             socket.writeLine( "Exception while adding the project." );
 
             socket.writeLine( stackTrace );
         }
+    }
+
+    // ----------------------------------------------------------------------
+    //
+    // ----------------------------------------------------------------------
+
+    private static String getExceptionStackTrace( Throwable ex )
+    {
+        StringWriter string = new StringWriter();
+
+        PrintWriter writer = new PrintWriter( string );
+
+        ex.printStackTrace( writer );
+
+        writer.flush();
+
+        return string.getBuffer().toString();
     }
 }

Modified: maven/continuum/trunk/continuum-xmlrpc/src/main/java/org/apache/maven/continuum/xmlrpc/DefaultContinuumXmlRpc.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-xmlrpc/src/main/java/org/apache/maven/continuum/xmlrpc/DefaultContinuumXmlRpc.java?rev=170007&r1=170006&r2=170007&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-xmlrpc/src/main/java/org/apache/maven/continuum/xmlrpc/DefaultContinuumXmlRpc.java
(original)
+++ maven/continuum/trunk/continuum-xmlrpc/src/main/java/org/apache/maven/continuum/xmlrpc/DefaultContinuumXmlRpc.java
Fri May 13 04:23:23 2005
@@ -410,7 +410,7 @@
         return hashtable;
     }
 
-    public static String getExceptionStackTrace( Throwable ex )
+    private static String getExceptionStackTrace( Throwable ex )
     {
         StringWriter string = new StringWriter();
 



Mime
View raw message