ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Retter <adam.ret...@googlemail.com>
Subject [PATCH]
Date Wed, 24 Jan 2018 11:27:41 GMT
If you previously used the Saxon XSLT Processor within
<junitreport><report> you would get an error as the XSLT stylesheets
provided with Ant do not work with Saxon, they in fact rely on Xalan2
specific extensions.

The attached patch adds Saxon compatible stylesheets and selects the
Saxon stylesheets if the Saxon processor is specified, e.g. the
following now works:

<junitreport todir="${junit.reports.dat}">

    <fileset dir="${junit.reports.dat}">
        <include name="TEST-*.xml"/>
    </fileset>

    <report format="frames" todir="${junit.reports.html}">
        <factory name="net.sf.saxon.TransformerFactoryImpl"/>
        <classpath>
            <fileset dir="lib">
                <include name="Saxon*.jar"/>
            </fileset>
        </classpath>
    </report>

</junitreport>


Hope this can make it into the next Ant release? Let me know if you
need any changes...

Cheers Adam.

-- 
Adam Retter

skype: adam.retter
tweet: adamretter
http://www.adamretter.org.uk


Mime
View raw message