ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew.Goodno...@dana.com
Subject Re: JUnit optional task
Date Wed, 28 Mar 2001 18:17:19 GMT

Did you download the binaries or the source?  If you download the source
you can build it yourself and this fixed the problem for me.




                                                                                         
                         
                    "dani"                                                               
                         
                    <dani@laminar        To:     <ant-user@jakarta.apache.org>  
                                  
                    soft.com>            cc:                                          
                            
                                         Subject:     JUnit optional task                
                         
                    03/28/2001                                                           
                         
                    11:51 AM                                                             
                         
                    Please                                                               
                         
                    respond to                                                           
                         
                    ant-user                                                             
                         
                                                                                         
                         
                                                                                         
                         



I'm having the same problem a number of others seem to be having, trying to
call junit (3.5) from ant (1.3).  Any advice would be appreciated.

The result of
                     <junit>
                            <classpath>
                               <path refid="ebm.class.path" />
                               <pathelement location="${classes}" />
                                 <pathelement location
="../misc/junit/3.5/junit.jar"/>
                            </classpath>
                         <test name="my.name.test"/>
                     </junit>

is

           BUILD FAILED

           C:\laminar\EBM\src\build.xml:312: Could not create task of type:
           junit. Common solutions are to use taskdef to declare your task,
           or, if this is an optional task, to put the optional.jar in the
           lib directory of your ant installation (ANT_HOME).

Placing junit.jar in the ant lib directory does not help.

advTHANKSance.

- Dani Zweig
  dani@laminarsoft.com






Mime
View raw message