The combination JUnit 4.5 + Ant 1.7.1 works fine for me.  I make sure my
library classpath is clean.  If it doesn't work for you with JUnit 4.5 +
Ant 1.7.1, I'd say you have an environment problem.


Shawn Castrianni wrote:
> How can I use the new JUnit 4.1 with ANT 1.7.X?  If I put the new junit.jar 
> on the classpath, everything seems to work until the very end when the unit 
> test report is created.  ANT tries to use the XSL stylesheets from 
> ant-junit.jar which apparently is not compatible with JUnit 4.1.
>
> test.report:
> Processing C:\svn\trunk\ADT\build\tests\win32\TESTS-TestSuites.xml to 
> c:\temp\null113546277
> Loading stylesheet 
> jar:file:/C:/svn/lgcbuild/ant/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/jun
> it-frames.xsl
> jar:file:/C:/svn/lgcbuild/ant/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl:5:
>  Wa
> rning! Running an XSLT 1.0 stylesheet with an XSLT 2.0 processor
> jar:file:/C:/svn/lgcbuild/ant/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl:36:
>  F
> atal Error! Unknown extension element
> Failed to process C:\svn\trunk\ADT\build\tests\win32\TESTS-TestSuites.xml
>
>
> ---
> Shawn Castrianni
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to