ZipComparator
is a Java Maven project for comparing the contents of two .zip
files. This utility is useful for verifying file consistency across zip archives, especially for scenarios involving frequent file packaging and validation.
Follow these instructions to set up and run the ZipComparator
project on your local machine.
Make sure you have the following installed:
- Java JDK 11 or higher
- Apache Maven for dependency management and project building
- Clone the repository:
https://github.com/puthusseri/zipcomparator.git
- Change into the project directory:
cd zipcomparator
- Build the project:
mvn clean install
To compare two sample zip files located at /path/to/zip1.zip and /path/to/zip2.zip, use:
- Package the Project as a JAR
mvn clean package
- Run the JAR File
java -jar target/ZipComparator-1.0-SNAPSHOT.jar <path/to/zip1.zip> <path/to/zip2.zip>