From: David S. <da...@sa...> - 2011-07-15 21:34:11
|
Have you followed the directions under "This task depends on external libraries not included in the Apache Ant distribution" at http://ant.apache.org/manual/Tasks/junit.html? Good luck, David Saff On Thu, Jul 14, 2011 at 12:39 PM, shawn smith <une...@ho...> wrote: > 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" /> > </fileset> > </path> > > <target name="test" depends="package_web"> > <junit> > <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" > /> > </junit> > </target> > > ........ > > Greg > > ------------------------------------------------------------------------------ > AppSumo Presents a FREE Video for the SourceForge Community by Eric > Ries, the creator of the Lean Startup Methodology on "Lean Startup > Secrets Revealed." This video shows you how to validate your ideas, > optimize your ideas and identify your business strategy. > http://p.sf.net/sfu/appsumosfdev2dev > _______________________________________________ > Junit-devel mailing list > Jun...@li... > https://lists.sourceforge.net/lists/listinfo/junit-devel > > |