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


This looks more like an XSL problem than a junit one, as if there is an old copy of an XSL engine around
1. what does
ant -diagnostics say

2. what is inC:/svn/lgcbuild/ant/lib/


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

Reply via email to