I am trying to get Junit 4 to run with Ant 1.8. I keep getting the same generic message when I run the build. "Could not create task or type of type : junit" I have my class path set up to access the junit jars. Anyone had similar error?


<!-- JUnit properties -->

 <property name="lib" value="C:\workspaces\ABADSLocalBuild\ProjectSource\source\published\classes" />

<!-- Define the classpath which includes the junit.jar and the classes after compilling -->
     <path id="junit.class.path">           
        <fileset dir="${lib}">
            <include name="**\*.jar" />

<target name="test" depends="package_web">
        <classpath refid="junit.class.path" />
        <formatter type="plain" usefile="false" />
        <test name="C:\workspaces\ABADSLocalBuild\ProjectSource\source\java\build\xyzjunWeb\com\highmark\xyzjun\test\SampleServletTest" />