continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r555904 - /maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/execution/maven/m2/MavenTwoBuildExecutor.java
Date Fri, 13 Jul 2007 08:06:21 GMT
Author: evenisse
Date: Fri Jul 13 01:06:21 2007
New Revision: 555904

URL: http://svn.apache.org/viewvc?view=rev&rev=555904
Log:
[CONTINUUM-1194] Truncate the exception if the length is greater than 8192

Modified:
    maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/execution/maven/m2/MavenTwoBuildExecutor.java

Modified: maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/execution/maven/m2/MavenTwoBuildExecutor.java
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/execution/maven/m2/MavenTwoBuildExecutor.java?view=diff&rev=555904&r1=555903&r2=555904
==============================================================================
--- maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/execution/maven/m2/MavenTwoBuildExecutor.java
(original)
+++ maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/execution/maven/m2/MavenTwoBuildExecutor.java
Fri Jul 13 01:06:21 2007
@@ -340,7 +340,13 @@
                             failure.setName( name );
                             if ( parser.next() == XmlPullParser.TEXT )
                             {
-                                failure.setException( parser.getText() );
+                                String exception = parser.getText();
+                                //TODO: review this part as it include an hardcoded value
of the columnsize
+                                if ( exception.length() >= 8192 )
+                                {
+                                    exception = exception.substring( 0, 8185 ) + "[...]";
+                                }
+                                failure.setException( exception );
                             }
                             suite.addFailure( failure );
                         }



Mime
View raw message