panalyzer is a small command line JAR program to analyze a project or in general a directory and its content. It gives a short summary of the file types, lines of code, directory size, latest modified files and a couple of other values.
- Download the latest JAR file from the
releases
folder and put it into the folder which you want to analyze - Open a terminal, navigate to the JAR and execute:
java -jar panalyzer.jar
- Go into the created folder
panalyzer-report
and open the fileindex.html
in a browser
To control the analyzed directories and files you can create a config file which will be included into the analyzing process. With the config file you can e.g. define ignores so that these directories and files are not analyzed.
Crate the file panalyzer.json
and put it into the same directory where the JAR file is located.
{
"ignores": [
"*.iml",
".git",
"*target",
"src/main/resources/tmp",
"tmp/data/*.log",
"config/db/*/*password*.conf"
]
}
To build the JAR package from the sources execute the following command in a terminal:
mvn clean compile assembly:single