Keep nested exceptions in truncated stack traces
------------------------------------------------

         Key: MPJUNITREPORT-11
         URL: http://jira.codehaus.org/browse/MPJUNITREPORT-11
     Project: maven-junitreport-plugin
        Type: Improvement
 Environment: linux/windows with jdk 1.4/1.5
    Reporter: Cyrille Le Clerc
    Priority: Minor
 Attachments: junit-report-test.zip, junit-report.diff

IMPROVEMENT DESCRIPTION
=======================
JUnit Report truncate stack traces after 'at 
org.apache.commons.jelly.tags.ant.AntTag.doTag' or 'at 
sun.reflect.NativeMethodAccessorImpl.invoke0(' to remove org.maven.* and 
org.apache.jakrta.jelly.* lines.
However, the drawback is that it removes the stack trace of nested exceptions 
("Caused by ...").

This is due to the call of a method that is not able to split exceptions and 
preserve nested stack traces 
"stringTool.splitStringAtLastDelim(stringTool.splitStringAtLastDelim(failure.text,
 'at org.apache.commons.jelly.tags.ant.AntTag.doTag').get(0)".

Here is a contribution that keeps nested stack traces.

MODIFIED / ADDED FILES
====================
- junit.jsl : call ExceptionTool instead of StringTool
- ExceptionTool.java and ExceptionToolTest.java : java util class to split and 
truncate exception stack traces. These files are declared under the package 
org.maven.plugins.junitreport
- project.xml : add junit-3.8.1.jar dependency

- junit-report-test.zip is a sample. See the improvement in junit-report.html.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to