ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "elise guedin" <eli...@hotmail.com>
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
<html><DIV>Hello,</DIV>
<DIV>&nbsp;</DIV>
<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>&nbsp;</DIV>
<DIV>ANT_HOME&nbsp;= c:\jakarta-ant-1.3</DIV>
<DIV>&nbsp;</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>&nbsp;</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>&nbsp;</DIV>
<DIV>But when I want to use the tag junit I still have :</DIV>
<DIV>&nbsp;</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 defaults.properties
and executing bin/bootstrap</DIV>
<DIV>BUILD FAILED</DIV>
<DIV>&nbsp;</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>&nbsp;</DIV>
<DIV>the defaults.properties file has junit in its optional tasks.</DIV>
<DIV>I also tried the source distribution without any success</DIV>
<DIV>&nbsp;</DIV>
<DIV>I would appreciate any idea.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks <BR><BR>Elise GUEDIN</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV><br clear=all><hr>Get Your Private, Free E-mail
from MSN Hotmail at <a href="http://www.hotmail.com">http://www.hotmail.com</a>.<br></p></html>

Mime
View raw message