ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "elise guedin" <>
Subject optional.jar is in my java.class.path but I can't make junit work from ant
Date Thu, 01 Jan 1970 00:00:00 GMT
<DIV>I thought I had the same problem as everybody else (namely a missing optional.jar
in my lib directory) but after inserting that file I still can't make junit work</DIV>
<DIV>ANT_HOME&nbsp;= c:\jakarta-ant-1.3</DIV>
<DIV>I used ant -debug and&nbsp; </DIV>
<DIV>java.class.path contains : C:\jakarta-ant-1.3\lib\optional.jar (that I downloaded
from the web) and also c:\junit3.5\junit.jar</DIV>
<DIV>Also I used&nbsp;the target check_for_optional_packages to see if junit was
present&nbsp; :</DIV>
<DIV>Finding class junit.framework.TestCase<BR>Class junit.framework.TestCase
loaded from system loader<BR>Setting project property: junit.present -&gt; true</DIV>
<DIV>But when I want to use the tag junit I still have :</DIV>
<DIV>RunTests:<BR>&nbsp;&nbsp;&nbsp;&nbsp; [null] Could not create
task of type: junit Common solutions are adding th<BR>&nbsp;task to
and executing bin/bootstrap</DIV>
<DIV>&nbsp;Could not create task of type: junit. Common solut<BR>ons are to
use taskdef to declare your task, or, if this is an optional task, t<BR>&nbsp;put
the optional.jar in the lib directory of your ant installation (ANT_HOME).<BR></DIV>
<DIV>the file has junit in its optional tasks.</DIV>
<DIV>I also tried the source distribution without any success</DIV>
<DIV>I would appreciate any idea.</DIV>
<DIV>Thanks <BR><BR>Elise GUEDIN</DIV>
<DIV>&nbsp;</DIV><br clear=all><hr>Get Your Private, Free E-mail
from MSN Hotmail at <a href=""></a>.<br></p></html>

View raw message