junit as in the case of other optional tasks, should be in the ant
classpath. (ie when you run Ant it should have it in the classpath)
Hope it helps.
--
Stéphane Bailliez
Software Engineer, Paris - France
iMediation - http://www.imediation.com
Disclaimer: All the opinions expressed above are mine and not those from my
company.
> -----Original Message-----
> From: dani [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 28, 2001 6:52 PM
> To: [EMAIL PROTECTED]
> Subject: JUnit optional task
>
>
> I'm having the same problem a number of others seem to be
> having, trying to
> call junit (3.5) from ant (1.3). Any advice would be appreciated.
>
> The result of
> <junit>
> <classpath>
> <path refid="ebm.class.path" />
> <pathelement location="${classes}" />
> <pathelement
> location="../misc/junit/3.5/junit.jar"/>
> </classpath>
> <test name="my.name.test"/>
> </junit>
>
> is
>
> BUILD FAILED
>
> C:\laminar\EBM\src\build.xml:312: 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).
>
> Placing junit.jar in the ant lib directory does not help.
>
> advTHANKSance.
>
> - Dani Zweig
> [EMAIL PROTECTED]
>