Nathan Coast <[EMAIL PROTECTED]> wrote on 23/09/2003 10:47:49 AM:

>  > Show us your POM.
> 
[snip]
>    <dependencies>
> 
>      <dependency>
>        <id>weblogic</id>
>        <version>8.1</version>
>      </dependency>
>      <dependency>
>        <id>junit</id>
>        <version>3.8.1</version>
>      </dependency>
>      <dependency>
>         <groupId>ant</groupId>
>         <artifactId>ant-optional</artifactId>
>         <version>1.5.3-1</version>
>      </dependency>
> 
>    </dependencies>
> 
[snip]
> ******************************************************
> from plugin.jelly
> 
>    <goal name="junitejb:test">
> 
>        <echo message="ant dependency 
${plugin.getDependencyPath('ant')}"/>
> 
>        <taskdef
>          name="junit" 
> classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask"
>          classpath="${plugin.getDependencyPath('ant')}"/>

Aren't you going to need ant, ant-optional and junit on this classpath?

plugin.getDependencyPath('ant') doesn't refer to any of your dependencies.

Try:

plugin.getDependencyPath('ant:ant-optional') for the optional jar.

> the echo gives "" as the value for the dependency path.  Interestingly 
> enough, when I hard code the path to the junit-optional jar, I get the 
> same error taskdef class org.apache.......JUnitTask cannot be found

--
dIon Gillard, Multitask Consulting
Blog:      http://blogs.codehaus.org/people/dion/



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to