You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Thomas Hackel <th...@bi-so.com> on 2004/08/20 16:34:50 UTC

Problem with TaskDef

Hi!

I have a problem with the taskdef task. i can't get "custom" tasks to work.

<taskdef name="myjdepend"
classname="org.apache.tools.ant.taskdefs.optional.jdepend.JDependTask">
	<classpath >
		<pathelement location="/libs/jdepend.jar" />
	</classpath>
</taskdef>

When i use this task ant complains about that it cant find a needed 
class. But this class is definitly in the jar and the jar is also present.

BUILD FAILED: xxxxxxxxxx/build.xml:xxxx: taskdef A class needed by class 
org.apache.tools.ant.taskdefs.optional.jdepend.JDependTask cannot be 
found: jdepend/xmlui/JDepend

I am using Ant 1.6.1 inside of eclipse 3.0.
This works when i put the JAR into the Ant classpath of eclipse. But 
this is no solution!

Thanks and a nice weekend,
Thomas

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