ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Andrews <>
Subject RE: Regarding Junit Program
Date Thu, 22 Feb 2001 04:44:50 GMT
You probably need to put junit.jar in your classpath as well.  You can put
it into ANT_HOME/lib if you like.

-----Original Message-----
From: Bala Subramanian []
Sent: Thursday, 22 February 2001 3:37 
Subject: Regarding Junit Program 
Importance: High

Hi martin ,
   I need help from u very urgently .I have downloaded the optional.jar 
   I know how to write the junit code.
  Snippet code
<target name="JunitTest">
<junit fork="yes" printsummary="yes" haltonfailure="yes">
<formatter type="plain"/>
<test name="com.sun.SimpleTest" outfile="result" />
   In the command prompt , i have given the ant JunitTest .But iam getting
   message as  follows :- 
D:\bala\latest>ant JunitTest
Buildfile: build.xml
D:\bala\latest\build.xml:93: Could not create task of type: junit. Common
ons are to use taskdef to declare your task, or, if this is an optional
task, t
 put the optional.jar in the lib directory of your ant installation
Total time: 0 seconds
          But i kept the optional.jar in the ANT_HOME/lib directory. I dont
why it is unable to
  find the optional.jar .Please help me .It is very urgent to me .


View raw message