Ant Package Problem with JUnit task

Stefan Gybas sgybas@debian.org
Wed Jun 16 08:56:02 2004


This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigAF40535F3CD920B6D4734CF4
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Jason Voegele wrote:

> Ant could not find the task or a class this task relies upon.

It looks like you don't have junit.jar in your classpath.

> I've noticed that there is no 'optional.jar' in /usr/share/ant/lib,

optional.jar was used in Ant 1.5. Ant 1.6 has split the optional tasks 
in separate JARs. All JARs in /usr/share/ant/lib are automatically added 
to Ant's classpath.

> although there is an ant-junit.jar.  Any ideas on what must be done to
> make the junit task work with this package?

The behaviour is not different from Apache's Ant version: You need to 
add the required classes (junit.jar in this case) to your classpath 
before running ant.

Stefan

--------------enigAF40535F3CD920B6D4734CF4
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD4DBQFA0F8RCdoSgNrrJGsRAvd0AJd+o9BQ1kkYOyPVuHI2Z5/0LHAVAJ90ui5e
bnpnYIq+7ghO/iUF2dM3Ew==
=ckS5
-----END PGP SIGNATURE-----

--------------enigAF40535F3CD920B6D4734CF4--