ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ying-Yi Huang <>
Subject RE: junitreport and Xalan2
Date Fri, 16 Nov 2001 01:52:44 GMT
I struggled a long time to get junitreport working with Xalan2 and ANT1.4.
The trick is to copy only xalan.jar, xerces.jar and bsf.jar to ant/lib. Then
everything works out fine.  If you copy all jar files, then you ends up with
error as stated in my previous mail about junitreport.

-----Original Message-----
From: []
Sent: Thursday, November 15, 2001 7:30 AM
Subject: Re: junitreport and Xalan2

Indeed, Xalan-J 1.x is no longer officially supported.  Someone should
consider updating whoever's code this is to use the equivalent Xalan-J 2.x
code.  XSLTProcessorFactory was a Xalan-J 1.x class, and it used it's own
API to do stylesheet transformations; it is no longer available in Xalan-J

The rough equivalent of this in Xalan-J 2.x is the
javax.xml.transform.TransformerFactory, which is a JAXP-standard call.  I
know there have been discussions in Ant-land about making Ant <style? task
use different processors; I'm not sure how this impacts the junit reporting
stuff tho.

- Shane
---- you Christopher Berry <> wrote ----
> Greetings, This is a note to save others the same pain ;-)
> I tried building the Ant 1.4 from the source using Xalan2, but this does
> work.
> If one looks at the build.xml file for Ant 1.4 it has the following
> <available property="xalan.present"
>               classname="org.apache.xalan.xslt.XSLTProcessorFactory"
>               classpathref="classpath" />
>     .....
>       <exclude name="${optional.package}/junit/"
>               unless="xalan.present" />
> But if you open up Xalan2, you will *not* find this CLASS file. And thus,
> the <junitreport> Task doesn't build properly.
> Building with Xalan 1.2.2 works as expected.
> Cheers,
>-- Chris

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message