ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Igor A. Deruga" <ingva...@hotbox.ru>
Subject Ant+JUnit
Date Sat, 13 Nov 2004 11:50:25 GMT
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:
//----------------------------------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-------------------------------
compile:
test:
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?

Sincerely
	Igor

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


Mime
View raw message