ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 51049] New: <junitreport> produces broken "Properties >>" link
Date Mon, 11 Apr 2011 15:00:15 GMT

           Summary: <junitreport> produces broken "Properties >>" link
           Product: Ant
           Version: 1.8.2
          Platform: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Optional Tasks

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"
    <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"
    <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:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message