On Thu, 24 Feb 2005 14:26:59 +0100, Henrard Frederic
<[EMAIL PROTECTED]> wrote:
[snip]
> I changed the script according to this :
>
> <ant:echo>${plugin.getDependencyPath('junit:junit')}</ant:echo>
> <ant:echo>${plugin.getDependencyPath('ant:ant-optional')}</ant:echo>
>
> <taskdef name="junit"
> classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask">
> <classpath>
> <pathelement location="${plugin.getDependencyPath('junit:junit')}"/>
> <pathelement
> location="${plugin.getDependencyPath('ant:ant-optional')}"/>
> </classpath>
> </taskdef>
>
> but it is the same thing :
I don't know if this was already suggested or not but I think I had a
similar problem some time ago (with my project based on
maven-axis-plugin). Although the plugin had its dependencies declared
I had to add them to my project.xml as well. So try adding the
dependency for junit (and maybe ant-optional, but since Vincent says
it's always in the classpath - maybe not) to your project's pom.
--
Lukasz Bajorski
tel. +48 508 609 414 GG: 3318146
www.jroller.com/page/benjie
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]