Re: JUnit / Ant 1.8
David Saff <[email protected]> Fri, 15 Jul 2011 16:34:04 -0500
| Newsgroups | gmane.comp.java.junit.devel |
|---|---|
| Message-ID | <CACj8BuPGWpOOupxELny6PgajhZr5arSPq7COxs56B=FtCpQeTw@mail.gmail.com> |
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 <[email protected]> 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 t= ype > : junit" I have my class path set up to access the junit jars. Anyone had > similar error? > > ....... > > > <!-- JUnit properties --> > > =A0<property name=3D"lib" > value=3D"C:\workspaces\ABADSLocalBuild\ProjectSource\source\published\cla= sses" > /> > > > <!-- Define the classpath which includes the junit.jar and the classes af= ter > compilling --> > =A0=A0=A0 =A0<path id=3D"junit.class.path"> > =A0=A0=A0 =A0=A0=A0 <fileset dir=3D"${lib}"> > =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 <include name=3D"**\*.jar" /> > =A0=A0=A0 =A0=A0=A0 </fileset> > =A0=A0=A0 </path> > > <target name=3D"test" depends=3D"package_web"> > =A0=A0=A0 <junit> > =A0=A0=A0 =A0=A0=A0 <classpath refid=3D"junit.class.path" /> > =A0=A0=A0 =A0=A0=A0 <formatter type=3D"plain" usefile=3D"false" /> > =A0=A0=A0 =A0=A0=A0 <test > name=3D"C:\workspaces\ABADSLocalBuild\ProjectSource\source\java\build\xyz= junWeb\com\highmark\xyzjun\test\SampleServletTest" > /> > =A0=A0=A0 </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 > [email protected] > https://lists.sourceforge.net/lists/listinfo/junit-devel > > ---------------------------------------------------------------------------= --- 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