ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pierre Goupil" <goupilpie...@gmail.com>
Subject A noob question : the JDepend Ant task
Date Wed, 06 Sep 2006 15:07:58 GMT
Hi all !


Totally new to both JDepend 2.9.1 and Ant 1.6.5, I'm trying to have them
work together. Unsuccessfully, as you may guess. I would like to generate a
JDepend report from Ant. I'm using Eclipse 3.2 under Windwos XP.

Here's the code :

***
  <taskdef name="jdepend" classpath="lib/jdepend.jar" classname="
org.apache.tools.ant.taskdefs.optional.jdepend.JDependTask"/>

  <target name="JDepend" depends="compile">

    <jdepend outputfile="${docDir}/jdepend.txt" fork="yes">
        <classespath location="${build}"/>
    </jdepend>

  </target>
***


Where "build" contains my .class subdirectories and where "docDir" is a
folder meant to receive the report.

And now, here's a digest of the error :


***
BUILD FAILED
D:\Zala\workspace\Avalisation\Divers\build.xml:45: taskdef A class needed by
class org.apache.tools.ant.taskdefs.optional.jdepend.JDependTask cannot be
found: jdepend/xmlui/JDepend
***

I've tryied these unsuccessfully:

-adding jdepend.jar to my eclipse build path
-setting ANT_HOME
-copying jdepend.jar to ~ant.home/lib/

Notice that I've tried all three with jdepend-2.9.1.jar, too.

If anyone got an idea...

Thanx


Pierre Goupil


-- 
"Rien de grand ne s'est accompli dans le monde sans passion."

(G.W.F. Hegel, philosophe Allemand)

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message