ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: java.lang.NullPointerException at .XMLJUnitResultFormatter.formatOutput(XMLJUnitResultFormatter.java:253)
Date Wed, 18 Jan 2006 05:13:21 GMT
On Tue, 17 Jan 2006, somath nao <somath.nao@wachovia.com> wrote:

> I'm trying to get the jUnit task to show the results in a xml
> format, however, when I add "<formatter type="xml" />" in the Ant
> build script I get java.lang.NullPointerException at
> .XMLJUnitResultFormatter.formatOutput(XMLJUnitResultFormatter.java:253)

Which exact version of Ant is this (helps to locate what ant is trying
to do at that line)?

> Here's what I have in the ant build file: 
> 
>                 <junit printsummary="yes" fork="yes"
>                 haltonfailure="yes"
> showoutput="no"> 
>                         <classpath> 
>                                 <path refid="compile.classpath" /> 
>                         </classpath> 
>                          <formatter type="xml" /> 
>                         <test name="com.funb.doit.net.TestHelloWorld" 
> outfile="result" > 
>                                 <formatter type="xml" /> 
>                         </test> 
>                 </junit> 

Do you really want to separate xml formatters?

Stefan

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


Mime
View raw message