ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Andrews <mar...@oopl.com.au>
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 [mailto:balas@lucid.co.in]
Sent: Thursday, 22 February 2001 3:37 
To: ant-user@jakarta.apache.org; martin@oopl.com.au
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" />
</junit>
</target>
 
   In the command prompt , i have given the ant JunitTest .But iam getting
error 
   message as  follows :- 
 
D:\bala\latest>ant JunitTest
Buildfile: build.xml
 
JunitTest:
 
BUILD FAILED
 
D:\bala\latest\build.xml:93: Could not create task of type: junit. Common
solut
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
(ANT_HOME).
 
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 .
 
 
Greetings
bala
 
 
 

 


Mime
View raw message