ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 51049] New: <junitreport> produces broken "Properties >>" link
Date Mon, 11 Apr 2011 15:00:15 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=51049

           Summary: <junitreport> produces broken "Properties >>" link
           Product: Ant
           Version: 1.8.2
          Platform: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Optional Tasks
        AssignedTo: notifications@ant.apache.org
        ReportedBy: markuskeller@fastmail.fm


The <junit> task from Ant 1.7.1 produced XML files where the values <property>
elements could contain newline characters, e.g.:

    <property name="ant.core.lib"
value="C:\e\i\I20110127-2034-3.7M5-clean\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant.jar"
/>
    <property name="line.separator" value="
" />

The <junitreport> converted this to HTML files where the value in the
JavaScript had a single space instead of the line separator characters:

        cur['line.separator'] = ' ';

This was valid JavaScript.


With Ant 1.8.2, the value in the XML got properly escaped:

    <property name="ant.core.lib"
value="C:\e\i\N20110407-2000\plugins\org.apache.ant_1.8.2.v20110117-1200\lib\ant.jar"
/>
    <property name="line.separator" value="&#xd;&#xa;" />

But now, the <junitreport> task creates JavaScript like this, which is invalid:

        cur['line.separator'] = '

';

        cur['os.arch'] = 'x86';

=> There are 2 line separators in the HTML file. Should be something like:

         cur['line.separator'] = '&#xd;&#xa;';

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message