ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Chalko <n...@chalko.com>
Subject Using classloader for Junit
Date Thu, 19 Jun 2003 07:43:46 GMT
<?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



Mime
View raw message