2nd Assignment includes a program that takes a java file and counts the lines of java code, the number of classes and the number of methods and save the metrics in a csv file.
Java version 1.8
Apache Maven 3.6
- Clone or Download the project in your local machine.
- Open your terminal.
- Go to folder /seip2019/JavaAnalyzer
cd ..../folder1/folder2/seip2019/JavaAnalyzer
- Write
mvn install
- Go to folder /target
cd JavaAnalyzer\target
- To run the program write:
java -jar metricsCalculator.jar [filepath] [string or regex]
- In the folder
/target
you will find a csv file with metrics.