Search the web
Sign In
New User? Sign Up
jdepend
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Problems with Ant/JDepend continued   Message List  
Reply | Forward Message #42 of 72 |
Re: [jdepend] Problems with Ant/JDepend continued


On Nov 22, 2003, at 8:01 AM, Robert Saenger wrote:

> Hi,
> I'm new to jdepend. Tried it out and got the
> impression that we could benefit from using it in our
> project.
> However, if I do *NOT* put the jdepend library on the
> 'external' classpath, jdepend fails to do it's
> work. The problem with that is that I can not assume
> that other project members do have the jdepend
> extension on their classpath, e.g. included in ant's
> lib dir. Usually we deliver utility jars together with
> the project and add them to the project's classpath. I
> thought that this could be achieved
> by using the fork attribute and adding a classpath
> entry for the jdepend task. But it doesn't work.


In order for Ant to be able to execute a <jdepend> task, jdepend.jar
must be in either the system CLASSPATH or the $ANT_HOME/lib directory.
There are direct dependencies on JDepend's API in the <jdepend> task
code, and although they are not directly used in forked mode you still
get a NoClassDefFoundError.

In addition to Rob's excellent suggestion to use <available>, you could
use a <java> task to run JDepend instead of using a <jdepend> task.

Hope that helps.

Mike




Sat Nov 22, 2003 8:29 pm

clarkware
Offline Offline
Send Email Send Email

Forward
Message #42 of 72 |
Expand Messages Author Sort by Date

Hi, I'm new to jdepend. Tried it out and got the impression that we could benefit from using it in our project. However, if I do *NOT* put the jdepend library...
Robert Saenger
robert_saenger
Offline Send Email
Nov 22, 2003
3:04 pm

The classic way to tackle this in ant is to use the <available> task in the init target and then only run the jdepend target if the classes are present. ...
Rob Oxspring
ROxspring
Offline Send Email
Nov 22, 2003
7:10 pm

... In order for Ant to be able to execute a <jdepend> task, jdepend.jar must be in either the system CLASSPATH or the $ANT_HOME/lib directory. There are...
Mike Clark
clarkware
Offline Send Email
Nov 22, 2003
8:30 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help