ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Csatári János" <csata...@tanet.hu>
Subject ANT 1.8.2 + JUnit error
Date Wed, 15 Jun 2011 15:50:22 GMT
Hi there!

I have ANT 1.8.2 and also JUnit installed. However, when I would like to use the junit task
in the build.xml, I get the following error: 

build.xml:188: The <classpath> for <junit> must include junit.jar if not in Ant's
own classpath

Here's the relevant parts of the build.xml: 


	<property name="report.dir"   value="report"/>
	<property name="junit.out.dir.xml"  value="${report.dir}xml"/>
	<property name="junit.out.dir.html" value="${report.dir}/html"/>
	

	<target name="validating the results" depends="discovering the topology">
		<description>Validating the results of the discovery process.</description>
		<echo>Validating the results...</echo>
		
                <delete dir="${junit.out.dir.xml}"/>
                <mkdir  dir="${junit.out.dir.xml}"/>
                <junit printsummary="yes" haltonfailure="no">
                     <formatter type="xml"/>
                     <batchtest fork="yes" todir="${junit.out.dir.xml}">
                
                     </batchtest>
                </junit>
</project>

I have the ant-junit.jar and junit.jar both in the %ANT_HOME%/lib directory and also in the
project lib directory. I've tried every solution found on google, but none of them worked.
I also included classpath in the junit task, but that doesn't worked.

Could you give me please some advice?

Greetings,
János Csatári

___________________________________





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


Mime
View raw message