views:

83

answers:

4

I am currently working on a mantenance project that is written in Java. We are currently working to clean up the code some and try to provide a little more organization to the project overall.

The list of libraries that are included in the build have grown long, and honestly no one remains that knows/remembers what each library is used for or why? So I am looking for a tool that would be able to essentially find where the library is used in the code. Essentially like a find usage function in an IDE has for functions.

Does such a tool exist? I am curently using Netbeans and as mentioned our code is in java.

I know I could remove each library and compile the project for each library to find the usages, but it just seems there should be a better way. Any ideas?

+1  A: 

Since you're using NetBeans, I suggest the SQE plugin, which includes Dependency Finder. (And if you weren't already using FindBugs, this is a good time to start.)

Michael Myers
+1  A: 

Try using jarjar. It has a command line interface that will analyze your dependency tree.

Steve Levine
+1  A: 

I haven't used it for a few years but I remember that JDepend was useful when I was in a similar situation.

Nick Fortescue
A: 

You could let Eclipse remove unnecessary imports for you. Then simply search through the code for imports relating to a specific library's package name.

Thomas
That was what I was trying to avoid having to do though. I was kinda looking for something a little quicker.
jschoen