tags:

views:

241

answers:

1

How do I find number of lines of code in RAD or Eclipse in entire workspace (all the projects)??

+1  A: 

You could:

  • add a plugin like Eclipse metrics
  • create a project which depends on all the other projects in the workspace
    (Java Build Path, tab "Projects", for adding "Required projects on the build path)
    Don't bother with the compilation: even if that global project doesn't compile it will give you the information you need.

alt text

alt text

VonC
VonC, I gave this method a shot and it didn't fully work. I was able to export metrics for a global project I made (with every other project on its build path) but the exported HTML has no data - e.g., 0 packages, 0 classes, 0 TLOC. Any ideas? These are J2EE projects so I'm wondering if that could be the cause.
Matt Ball
@Bears: strange, I didn't test it recently but it may have missed the right directories to analyze in your case.
VonC