If I would like to count lines of code for each Java program in my Java project, which tool can help me?
Go to http://cloc.sourceforge.net/ to download exe file (i.e. cloc-1.62.exe).
Assume cloc-1.62.exe had been saved into D:\software
Assume the Java project located in D:\workspace2\ave\ave-webapp\src\main\java
- Step1. open command prompt.
- Step2. Change directory to Java project directory, i.e. D:\workspace2\ave\ave-webapp\src\main\java
- Step3. Execute this command: d:\software\cloc-1.62.exe . --by-file
Check the result: