ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martijn Kruithof>
Subject Re: Ant+JUnit
Date Sat, 13 Nov 2004 11:50:41 GMT
Igor A. Deruga wrote:

>I know that this question has been asked hundreds times, but I can't find a 
>single document on it... Maybe you can redirect me?
>I'm using Eclipse+Ant. I've added these lines into build.xml:
>	<target name="test" description="Launch JUnit tests" depends="compile">
>		<junit>
>			<test name="src.server.test.impl.IMServerImplTest"/>
>		</junit>
>	</target>
>When I try to run the target "test", it says: 
>//----------------------------------End of XML-------------------------------
>BUILD FAILED: /home/ingvarr/bin/eclipse/workspace/openim/build.xml:39: Could 
>not create task or type of type: junit.
>Ant could not find the task or a class this task relies upon.
>//----------------------------------End of Log-------------------------------
>Do I need to specify any classpath elements to run this particular tasks? All 
>the other tasks that I've used (javac, jar, mkdir) are working fine. 
>Any ideas on this problem?
>	Igor
Yes, you need to specify the junit.jar on your classpath, or you can put 
it in ants lib dir.
See also:

Kind regards, Martijn

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message