Browse Source

fix PR 34963, create <br/> in stack-traces

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278428 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 20 years ago
parent
commit
eabe1ea77b
4 changed files with 9 additions and 8 deletions
  1. +5
    -2
      WHATSNEW
  2. +1
    -2
      src/etc/junit-frames.xsl
  3. +2
    -3
      src/etc/junit-noframes.xsl
  4. +1
    -1
      src/testcases/org/apache/tools/ant/taskdefs/optional/junit/JUnitReportTest.java

+ 5
- 2
WHATSNEW View File

@@ -1,5 +1,5 @@
Changes from current Ant 1.6 CVS version to current CVS version
=============================================
Changes from current Ant 1.6.5 version to current CVS version
=============================================================


Changes that could break older environments: Changes that could break older environments:
-------------------------------------------- --------------------------------------------
@@ -113,6 +113,9 @@ Fixed bugs:
* <tar> / <untar> now accepts files upto 8GB, <tar> gives an error if larger * <tar> / <untar> now accepts files upto 8GB, <tar> gives an error if larger
files are to be included. This is the POSIX size limit. files are to be included. This is the POSIX size limit.


* <junitreport> removed line-breaks from stack-traces. Bugzilla
Report 34963.

Other changes: Other changes:
-------------- --------------




+ 1
- 2
src/etc/junit-frames.xsl View File

@@ -701,8 +701,7 @@ h6 {
--> -->
<xsl:template name="br-replace"> <xsl:template name="br-replace">
<xsl:param name="word"/> <xsl:param name="word"/>
<xsl:param name="br"><br/></xsl:param>
<xsl:value-of select='stringutils:replace(string($word),"&#xA;",$br)'/>
<xsl:value-of disable-output-escaping="yes" select='stringutils:replace(string($word),"&#xA;","&lt;br/>")'/>
</xsl:template> </xsl:template>


<xsl:template name="display-time"> <xsl:template name="display-time">


+ 2
- 3
src/etc/junit-noframes.xsl View File

@@ -5,7 +5,7 @@
doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" /> doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" />
<xsl:decimal-format decimal-separator="." grouping-separator="," /> <xsl:decimal-format decimal-separator="." grouping-separator="," />
<!-- <!--
Copyright 2001-2004 The Apache Software Foundation
Copyright 2001-2005 The Apache Software Foundation


Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
@@ -447,8 +447,7 @@
--> -->
<xsl:template name="br-replace"> <xsl:template name="br-replace">
<xsl:param name="word"/> <xsl:param name="word"/>
<xsl:param name="br"><br/></xsl:param>
<xsl:value-of select='stringutils:replace(string($word),"&#xA;",$br)'/>
<xsl:value-of disable-output-escaping="yes" select='stringutils:replace(string($word),"&#xA;","&lt;br/>")'/>
</xsl:template> </xsl:template>


<xsl:template name="display-time"> <xsl:template name="display-time">


+ 1
- 1
src/testcases/org/apache/tools/ant/taskdefs/optional/junit/JUnitReportTest.java View File

@@ -91,7 +91,7 @@ public class JUnitReportTest extends BuildFileTest {
} }


// Bugzilla Report 34963 // Bugzilla Report 34963
public void XtestStackTraceLineBreaks() throws Exception {
public void testStackTraceLineBreaks() throws Exception {
expectReportWithText("testStackTraceLineBreaks", null); expectReportWithText("testStackTraceLineBreaks", null);
FileReader r = null; FileReader r = null;
try { try {


Loading…
Cancel
Save