eclipse - Java LOC counting by comparing two project -


I have two java projects in the eclipse, different versions on the same project.

Now I want to compare these projects and want to find the combined, modified, deleted LOC s of each java project.

Are any plugins available for this purpose? Or is there any such device available? Please advise me.

You can click on Project / Folders / Package in Eclipse, right click and select < Compare with Code> & gt; every other . This will give you an overview of the differences between them. It does not give it on a line basis, nor recurse it in the subdirectory.

On Linux, you can find diff and diffstat together as follows.

  diff -rN old-dir new-dir | Diffstat   

will make the logic -r different recurring (i.e., appears in the subdirectory), and -n the missing files are empty Will behave as (to report the lines added instead of adding the file)

This will create a list:

  directory / some-files | 5++++ directory / other-files | 18++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++ ++++ modified files, but cast and deleted   

Comments