ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William Ferguson" <william_fergu...@versata.com>
Subject RE: JUnit optional task
Date Mon, 10 Dec 2001 22:43:06 GMT
You can either

1) put junit.jar in %ANT_HOME%\lib
2) add it to the classpath when invoking Ant
3) leave jnuint.jar where it is and move Ant's optional.jar out of
%ANT_HOME%\lib and specify the path to both junit.jar and optional.jar in
the taskdef for the Junit task.


William

> -----Original Message-----
> From: Bryan P. Glennon [mailto:bryan@bpgc.com]
> Sent: Tuesday, 11 December 2001 9:18
> To: ant-user@jakarta.apache.org
> Subject: JUnit optional task
>
>
> When I try to use the Junit task (with ant 1.4.1, Junit 3.7 and
> jdk1.2.2) I get the following error:
>
> Could not create task of type: junit. Common solutions are to use
> taskdef to declare your task, or, if this is an optional task, to put
> the optional.jar in the lib directory of your ant installation
> (ANT_HOME).
>
> Well, optional.jar is in the ANT_HOME/lib dir (as is
> jakarta-ant-1.4.1-optional.jar.) Actually, optional.jar is just a copy
> of jakarta-ant-1.4.1-optional.jar.
>
> So, what am I doing wrong?
>
> Thanks,
> Bryan
> --
> Bryan Glennon (mailto:bryan@bpgc.com)
> BPG Consulting, Inc. (http://www.bpgc.com)
> Tech Question? (mailto:techQuestion@bpgc.com)
>
> --
> To unsubscribe, e-mail:
> <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:ant-user-help@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message