In the documentation you have some examples that should show you how to use
it.
I think it should be pretty explanatory (for the most basic stuff at least),
if things are not clear, post again a mail with specific questions about
your problems. I'll do my best to answer your question if I'm able to.
About your error, I believe that your directory does not exists thus it
cannot write the aggregated file.
In a more general advice, from what I read earlier: DO NOT use several
parsers in your classpath unless you know perfectly what you are doing and
that this is absolutely mandatory and that you perfectly control the
classpath order.
--
Stéphane Bailliez
Software Engineer, Paris - France
iMediation - http://www.imediation.com
Disclaimer: All the opinions expressed above are mine and not those from my
company.
> -----Original Message-----
> From: Balasubramanian S [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 22, 2001 8:48 AM
> To: ''[EMAIL PROTECTED] ' '
> Subject: JunitReport
> Importance: High
>
>
> hi
> iam working on ant1.3 .I am using optional task like junit
> That works fine .I have directed the output of junit results
> to xml .I am planning to JunitReport .I know it is browsable
> based report .I want some more information abt junitreport
> I want to use junitreport task .Could u help me by providing
> snippet working code to me .I have tried with sample code
> which comes alonw with documentation but iam getting
> message as
>
> D:\bala\feb24\build.xml:41: Unable to write test aggregate to
> 'D:\bala\feb24\reports\TESTS-TestSuites.xml'
> --- Nested Exception ---
> java.io.FileNotFoundException:
> D:\bala\feb24\reports\TESTS-TestSuites.xml
> (The s
> ystem cannot find the path specified)
> at java.io.FileOutputStream.open(Native Method)
> at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
> at java.io.FileOutputStream.<init>(FileOutputStream.java:62)
> at java.io.FileOutputStream.<init>(FileOutputStream.java:132)
> at
> org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.writ
> eDOMTree(XMLResultAggregator.java:223)
> at
> org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.exec
> ute(XMLResultAggregator.java, Compiled Code)
> at org.apache.tools.ant.Target.execute(Target.java, Compiled
> Code)
> at org.apache.tools.ant.Project.runTarget(Project.java:898)
> at org.apache.tools.ant.Project.executeTarget(Project.java,
> Compiled
> Cod
> e)
> at org.apache.tools.ant.Project.executeTargets(Project.java,
> Compiled Co
> de)
> at org.apache.tools.ant.Main.runBuild(Main.java,
> Compiled Code)
> at org.apache.tools.ant.Main.main(Main.java:149)
>
> Could u kindly help me
>
> Regards
> Bala
>