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: [email protected]
        ReportedBy: [email protected]


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.

Reply via email to