Installation Instruction
- Download and install the PostgreSQL object-relational database system
- Create an database called archlintdb
- Execute the query file dbcreate.sql into archlintdb
- Download and install the Java Runtime Environment 7 (JRE)
- Download and unzip the ArchLint tool
- Set the database connection properties
- Open the file ./lib/ArchLint-Core.jar/META-INF/persistence.xml
- Set javax.persistence.jdbc.url = jdbc:postgresql://<host-address>:<port-number>/archlintdb
- Set javax.persistence.jdbc.user = <database-user-name>
- Set javax.persistence.jdbc.password = <database-user-password>
How To Use
To run the ArchLint tool from the command line, go to the unzip folder and type the following: java -jar archlint.jar <options>
Options:
-p <project-xml-descriptor> | Load project xml file descriptor |
-l <project-name> | Load repository revisions log |
-d <project-name> <checkout-path> <source-path> <class-path> |
Load dependencies from source code |
-c <project-name> <component-model> | Load component model specification |
-t <project-name> <project-thresholds> | Load metrics thresholds |
-v <project-name> | Generate absences and divergences evidences report |
ArchLint in Action
To evaluate the ArchLint tool, we provide an example of use involving data from the Jabref system.
- java -jar archlint.jar -p jabref_project.xml
- java -jar archlint.jar -l Jabref
- java -jar archlint.jar -d Jabref ./Jabref ./Jabref/src ./Jabref/lib
- java -jar archlint.jar -c Jabref jabref_component-model.txt
- java -jar archlint.jar -t Jabref jabref_thresholds.xml
- java -jar archlint.jar -v Jabref