recognize "... 12 more" lines

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@29203 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2010-03-24 23:50:40 +00:00
1 parent 2e81fba4f2
commit 330c6304dc
1 file changed
+5
@@ -53,6 +53,9 @@ public class HudsonExceptionNote extends ConsoleNote<Object> {
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<Object> {
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");
}