ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Royston McNeill" <roys...@pressroom.com>
Subject RE: Doesn't see optional.jar
Date Wed, 28 Feb 2001 00:01:17 GMT
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:gary@sferics.com]
Sent: Tuesday, February 27, 2001 11:49 AM
To: ant-user@jakarta.apache.org
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



Mime
View raw message