ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Srinivas_Pasupar...@i2.com
Subject Re: Regarding Junit Program
Date Thu, 22 Feb 2001 15:36:18 GMT

Did you specifically put optional.jar in your Classpath?? Try that and it
may work.




                                                                                         
                         
                    "Bala                                                                
                         
                    Subramanian"         To:     <ant-user@jakarta.apache.org>, <martin@oopl.com.au>
              
                    <balas@lucid.        cc:                                          
                            
                    co.in>               Subject:     Regarding Junit Program         
                            
                                                                                         
                         
                    02/21/01                                                             
                         
                    10:36 PM                                                             
                         
                    Please                                                               
                         
                    respond to                                                           
                         
                    ant-user                                                             
                         
                                                                                         
                         
                                                                                         
                         




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