You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by ol...@rwg.de on 2000/09/29 17:57:21 UTC

junit not found

Hi,

it wanted to try the junit task in 1.2 but I got the error message

Could not create task of type: junit because I can't find it in the list of
task class definitions

Here's my build file:

  <target name="runtests" depends="compile">
    <junit>
      <test name="jrequest.test.BaseTest"/>
    </junit>
  </target>

any ideas?
oliver
--
Oliver Böhm
Tel 0711/2012-2734
mailto:oliver.boehm@rwg.de      http://www.rwg.de
mailto:boehm@ba-stuttgart.de    http://www.ba-stuttgart.de/~boehm

Re: junit not found

Posted by Stefan Bodewig <bo...@bost.de>.
>>>>> "ob" == oliver boehm <ol...@rwg.de> writes:

 ob>  Hi, it wanted to try the junit task in 1.2 but I got the error
 ob> message

Are you using Ant 1.2alphaX from CVS or just Ant 1.1 with the JUnit
stuff added?

defaults.properties in the taskdefs directory should hold a line 
 
junit=org.apache.tools.ant.taskdefs.optional.junit.JUnitTask

Note, that you need to compile Ant yourself as JUnit is not installed
on the machine doing the nightly builds - which means the task will
not be included.

Stefan