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: [email protected]
For additional commands, e-mail: [email protected]