You need to have "junit.jar" in your system CLASSPATH. While "optional.jar"
contains the interface for junit,
junit.jar contains the implementation.
-----Original Message-----
From: Gary Lawson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 27, 2001 11:49 AM
To: [EMAIL PROTECTED]
Subject: Doesn't see optional.jar
We're trying to use the junit optional task, using the following section in
build.xml
<junit>
<classpath refid="project.classpath" />
<formatter type="plain" />
<test name="com.sferics.campfiretest.AllTests" haltonfailure="no" />
</junit>
optional.jar is in /ant/lib and is referenced on the CLASSPATH (belts and
braces).
Despite this, we still get the following error:
/home/gary/build.xml:87: Could not create task of type: junit because I
can't find it in the list of task class definitions. Common solutions are:
1 execute bin/bootstrap. 2 use taskdef to declare your task. 3 add the task
to defaults.properties.
Any ideas?
TIA
Gary