I've tried adding this to the plugin's project.xml
<dependency> <id>ant-optional</id> <groupId>ant</groupId> <version>1.5.3-1</version> </dependency>
and this to the plugin.jelly
<taskdef name="junit" classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask" classpath="${plugin.getDependencyPath('ant-optional')}" />
but it still doesn't work :(
Andy Jefferson wrote:
On Monday 22 Sep 2003 12:21, Nathan Coast wrote:
Hi,
I have a plugin that contains a taskdef for the ant JUnit task. I copied the code from the test plugin but I get this error.
taskdef class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask cannot be found.
Any ideas how I'd make the ant optional tasks availabble to my plugin?
Put "ant-optional" in the project.xml of your plugin, and then add <pathelement path="${plugin.getDependencyPath('ant-optional')}"/>
to your CLASSPATH in the plugin.jelly
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]