ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Conor MacNeill <co...@cortexebusiness.com.au>
Subject Re: Problem in running junit task in ant
Date Tue, 28 May 2002 13:15:18 GMT
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>


Mime
View raw message