From 330c6304dcc662703791fbbf4f8540eaec3aa735 Mon Sep 17 00:00:00 2001 From: kohsuke Date: Wed, 24 Mar 2010 23:50:40 +0000 Subject: [PATCH] recognize "... 12 more" lines git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@29203 71c3de6d-444a-0410-be80-ed276b4c234a --- core/src/main/java/hudson/console/HudsonExceptionNote.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/src/main/java/hudson/console/HudsonExceptionNote.java b/core/src/main/java/hudson/console/HudsonExceptionNote.java index 3ffb7352d7..bdc62874f9 100644 --- a/core/src/main/java/hudson/console/HudsonExceptionNote.java +++ b/core/src/main/java/hudson/console/HudsonExceptionNote.java @@ -53,6 +53,9 @@ public class HudsonExceptionNote extends ConsoleNote { return this; } + if (AND_MORE.matcher(line).matches()) + return this; + // looks like we are done with the stack trace return null; } @@ -93,4 +96,6 @@ public class HudsonExceptionNote extends ConsoleNote { private static final Pattern STACK_TRACE_ELEMENT = Pattern.compile("\tat ("+CLASSNAME_PATTERN+")\\.([\\p{L}0-9$_<>]+)\\((\\S+):([0-9]+)\\)"); private static final String CAUSED_BY = "Caused by: "; + + private static final Pattern AND_MORE = Pattern.compile("\t... [0-9]+ more"); }