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 Re: ANT 1.8.2 + JUnit error
Date Wed, 15 Jun 2011 15:57:34 GMT
It seems now it works, I just simply needed to add

        	<classpath>
        		<pathelement location="./lib/junit.jar" path="./lib/junit.jar"/>
        	</classpath>

to the junit tasks. Anyway, thank you for your fast response! :)

Kasim Ahmed <mail2kasim@googlemail.com> írta :

> in your ant-home library include ant-junit.jar( if not avaialble) and run again. 2011/6/15
Csatári János <csatarij@tanet.hu>
> 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&#39;s own classpath
> 
> Here&#39;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&#39;ve tried every solution found on google, but none
of them worked. I also included classpath in the junit task, but that doesn&#39;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



___________________________________





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


Mime
View raw message