Hi,

I'm using the <junitreport> task this way:

    <junitreport todir="${junit.reportDir}">
      <fileset dir="${junit.reportDir}">
        <include name="TEST-*.xml"/>
      </fileset>
      <report format="frames" todir="${junit.htmlDir}"/>
    </junitreport>

I have both Ant 1.5.3-1 ant Ant 1.6.0 installed on my PC running W2000, but none is in 
the path, so I can decide which one to run.
I also added junit.jar in both lib directory. This is the 3.8.1 revision bundled with 
Eclipse 2.1.2.
I'm using Sun's JDK 1.3.1_08.

When I run my script with Ant 1.5.3-1, it generated correctly my HTML from my xml 
result files.
But when I run Ant 1.6.0, I get an error message. Here is the result of the run with 
-debug option:

Apache Ant version 1.6.0 compiled on December 18 2003
 [...]
build:
Could not load a dependent class (com/sun/media/jai/codec/FileSeekableStream) for type 
image
Could not load a dependent class (com/jcraft/jsch/UserInfo) for type sshexec
Could not load a dependent class (com/jcraft/jsch/UserInfo) for type scp
Could not load a dependent class (org/apache/commons/net/SocketClient) for type rexec
Could not load a dependent class (com/starbase/starteam/Item) for type stlist
Could not load a dependent class (org/apache/commons/net/SocketClient) for type telnet
Could not load a dependent class (org/apache/commons/net/ftp/FTP) for type ftp
Could not load a dependent class (jdepend/xmlui/JDepend) for type jdepend
Could not load a dependent class (com/starbase/starteam/Item) for type stcheckin
Could not load a dependent class (com/starbase/starteam/Item) for type stcheckout
fileset: Setup scanner in dir C:\temp\report with patternSet{ includes: [TEST-*.xml] 
excludes: [] }
[junitreport] Parsing file: 
'C:\temp\report\TEST-com.dexia.common.business.TypeVoieTest.xml'
 [...]
[junitreport] Parsing file: 
'C:\temp\report\TEST-com.dexia.common.util.pdf.PDFUtilsTest.xml'
[junitreport] Didn't find Xalan2.
[junitreport] java.lang.ClassNotFoundException: 
org.apache.xalan.processor.XSLProcessorVersion
[junitreport]   at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
[junitreport]   at java.security.AccessController.doPrivileged(Native Method)
 [...]
[junitreport]   at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90)
[junitreport] Didn't find Xalan1.
[junitreport] java.lang.ClassNotFoundException: 
org.apache.xalan.xslt.XSLProcessorVersion
[junitreport]   at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
[junitreport]   at java.security.AccessController.doPrivileged(Native Method)
 [...]
[junitreport]   at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90)

C:\temp\build.xml:18: Could not find xalan2 nor xalan1 in the classpath. Check 
http://xml.apache.org/xalan-j
        at 
org.apache.tools.ant.taskdefs.optional.junit.XalanExecutor.newInstance(XalanExecutor.java:126)
        at 
org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.transform(AggregateTransformer.java:182)
        at 
org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.execute(XMLResultAggregator.java:173)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:306)
 [...]

I checked that both ant-xalan1.jar and ant-xalan2.jar are in the lib directory of Ant 
1.6.0.
Do you have any idea?

_________________________________________________________________________________________________________
Ce message (et toutes les pi�ces jointes) sont confidentiels ; son contenu ne 
repr�sente en aucun cas un engagement de la part de DEXIA SOFAXIS. Toute publication, 
utilisation ou diffusion, m�me partielle, doit �tre autoris�e pr�alablement par 
l'�metteur. 

Si vous n'�tes pas destinataire de ce message, merci d'en avertir imm�diatement 
l'exp�diteur.

Conform�ment aux dispositions de la loi n� 78-17 du 6 janvier 1978 relative � 
l'informatique, aux fichiers et aux libert�s, vous pouvez obtenir communication et, le 
cas �ch�ant, rectification ou suppression des informations vous concernant en vous 
adressant � DEXIA SOFAXIS - Route de Creton - 18110 VASSELAY


_________________________________________________________________________________________________________
Consultez notre site internet http://www.sofaxis.com




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to