ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: junit taskdef not working? is this working for others...
Date Mon, 13 Sep 2004 06:18:54 GMT
On Sat, 11 Sep 2004, Dean D. Hiller <dhiller@avaya.com> wrote:

> Why would this not be working and still complaining it can't find a
> class in the junit jar
> 
>             <path id="junit.lib">
> 
>                         <pathelement
> path="${junit.location}/ant-junit.jar"/>
> 
>                         <pathelement path="${lib}/tools/junit.jar"/>
> 
>             </path>
> 
>       <taskdef name="junit"
> classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask"
> 
>                classpathref="junit.lib"/>

>From the rest of your post you seem to have read
<http://ant.apache.org/faq.html#delegating-classloader>

Run Ant with -debug and look at the "loading class foo from the X
classloader" messages, maybe it will give you a hint.

I think you still have an instance of the JUnit task class on your
system class loader somewhere.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message