Check the ant faq http://ant.apache.org/faq.html#delegating-classloader
In essence you need to place the junit.jar file in ${ant.home}/lib

Cheers,

Peter

On Thu, 2003-06-19 at 08:43, Nick Chalko wrote:
> <?xml version="1.0"  ?>
> <project default="test" name="junit.antlib">
>     <path id="ant.deps" >
>      <fileset dir="lib" >
>         <include name="junit-3.8.1.jar"/>
>      </fileset>
>   </path>
>   <classloader classpathRef="ant.deps" />
>      <taskdef name="junit" 
> classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask"/>
> </project> 
> 
> Fails with
> $ ant
> Buildfile: build.xml
> 
> BUILD FAILED
> C:\tools\ant-head\tools\antlibs\junit-0.1.1-dev-20030618.antlib\build.xml:12: 
> ta
> skdef: A class needed by class 
> org.apache.tools.ant.taskdefs.optional.junit.JUni
> tTask cannot be found: junit/framework/TestListener
> 
> Total time: 1 second
> 
> 
> How is this suppose to work?
> 
> I see the use parent for org.apache.tools.ant.
> and the then use loader for org.apache.tools.ant.taskdefs.optional.
> But it does not seem to work.  Any ideas?
> 
> R,
> Nick
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to