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" <[EMAIL PROTECTED]>
To: "Ant Users List" <[EMAIL PROTECTED]>
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:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>