This is an automated email from the ASF dual-hosted git repository.

jaikiran pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ant.git


The following commit(s) were added to refs/heads/master by this push:
     new 02ffb25  bz-63827 Print out stacktrace in "legacy-xml" when the test 
is aborted too
02ffb25 is described below

commit 02ffb258c880a40c06048f33decf17bd63094ec4
Author: Jaikiran Pai <[email protected]>
AuthorDate: Thu Oct 10 14:18:59 2019 +0530

    bz-63827 Print out stacktrace in "legacy-xml" when the test is aborted too
---
 .../ant/taskdefs/optional/junitlauncher/LegacyXmlResultFormatter.java   | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/src/main/org/apache/tools/ant/taskdefs/optional/junitlauncher/LegacyXmlResultFormatter.java
 
b/src/main/org/apache/tools/ant/taskdefs/optional/junitlauncher/LegacyXmlResultFormatter.java
index 6ea6e7b..bf42199 100644
--- 
a/src/main/org/apache/tools/ant/taskdefs/optional/junitlauncher/LegacyXmlResultFormatter.java
+++ 
b/src/main/org/apache/tools/ant/taskdefs/optional/junitlauncher/LegacyXmlResultFormatter.java
@@ -302,6 +302,8 @@ class LegacyXmlResultFormatter extends 
AbstractJUnitResultFormatter implements T
                     writer.writeAttribute(ATTR_MESSAGE, message);
                 }
                 writer.writeAttribute(ATTR_TYPE, t.getClass().getName());
+                // write out the stacktrace
+                writer.writeCData(StringUtils.getStackTrace(cause.get()));
             }
             writer.writeEndElement();
         }

Reply via email to