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]>