db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knut Anders Hatlen (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DERBY-2234) ant junitreport gives fatal error during transformation
Date Tue, 05 Aug 2014 12:59:12 GMT

     [ https://issues.apache.org/jira/browse/DERBY-2234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Knut Anders Hatlen updated DERBY-2234:
--------------------------------------

    Attachment: d2234-1a.diff

It fails when we tweak one of the files (overview-frame.html) in the generated HTML report
to include a link to sysinfo.txt. We use an XSLT script to add the link, and that requires
the file to be a valid XML document. It is not a valid XML document, so we already have code
in the build script to make some changes to the file before it is passed to the xslt task.

The changes that we currently make, are apparently not sufficient to make it valid XML on
all platforms (the generated HTML seems to vary, so different changes are needed on different
platforms).

We could fix this error by massaging overview-frame.html even more before passing it to the
xslt task. That is, we could make the build script replace any occurrence of {{<td nowrap>}}
with {{<td nowrap="nowrap">}}.

However, instead of massaging the file in the build script in order to make it acceptable
to the XSLT script, it is easier and probably more robust to make the build script just add
the link. Then we don't need the code that turns the HTML document into an XML document, and
we don't need the XSLT script.

The attached patch [^d2234-1a.diff] makes the suggested change. It uses a replaceregexp task
to insert the sysinfo link into overview-frame.html, and removes tools/ant/xsl/sysinfo_junitreport.xsl.

> ant junitreport gives fatal error during transformation
> -------------------------------------------------------
>
>                 Key: DERBY-2234
>                 URL: https://issues.apache.org/jira/browse/DERBY-2234
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.3.1.4
>            Reporter: Daniel John Debrunner
>            Assignee: Knut Anders Hatlen
>              Labels: derby_triage10_8
>         Attachments: d2234-1a.diff
>
>
> Seemed to create a report still though.
> [junitreport] Transform time: 6499ms
>      [xslt] Processing C:\_work\svn\trunk\junit_20070111_1541\overview-frame
> .html to C:\_work\svn\trunk\junit_20070111_1541\overview-frame2.html
>      [xslt] Loading stylesheet C:\_work\svn\trunk\tools\ant\xsl\sysinfo_juni
> treport.xsl
>      [xslt] C:/_work/svntrunk/junit_20070111_1541/overview-frame.html:14:11
> : Fatal Error! Attribute name "nowrap" associated with an element type "td" must
>  be followed by the ' = ' character.
>      [xslt] Failed to process C:\_work\svntrunk\junit_20070111_1541\overvie
> w-frame.html
> BUILD FAILED
> C:\_work\svntrunk\build.xml:1756: Fatal error during transformation



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message