ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emerson Cargnin - MSA" <emers...@sicredi.com.br>
Subject Re: Problem in running junit task in ant
Date Tue, 28 May 2002 13:22:39 GMT
That was it, I thought that junit was in optional.jar too : ) (it was
junit.jar missing in ant_home/lib)
----- Original Message -----
From: "Conor MacNeill" <conor@cortexebusiness.com.au>
To: "Ant Users List" <ant-user@jakarta.apache.org>
Sent: Tuesday, May 28, 2002 10:15 AM
Subject: Re: Problem in running junit task in ant


> Emerson Cargnin - MSA wrote:
> > I'm getting the following error when running JUnit task through ant :
> >
> > test:
> >
> > BUILD FAILED
> > C:\eclipse\workspace\POC\script\build.xml:304: Could not create task or
type
> > of
> > type: junit.
> > ...
> > ...
> >
> > my test target :
> >
> >    <!-- Teste -->
> >    <target name="test" depends="deploy">
> >     <junit printsummary="true">
> >       <formatter type="plain" usefile="false"/>
> >       <test name ="br.com.sicredi.poc1.testes.Poc1.Test"/>
> >    <classpath>
> >         <pathelement location="${build.dir}"/>
> >         <path refid="project.class.path"/>
> >       </classpath>
> >     </junit>
> >    </target>
> >
> > I even put ANT_HOME\lib in the classpath, but i thought that optional
tasks
> > don't need further importing or taskdef, anyone knows about it?
> >
> >
>
>
> Have you got junit.jar? Is it on the classpath or in ANT_HOME\lib? Are you
> running Ant from the command line?
>
> Conor
>
>
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


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


Mime
View raw message