ZipDiff compares two .zip (.jar, .war, .ear, .rar) files and creates a list of differences. Plain text, .xml, .html and even a .zip file are supported as output formats.
ZipDiff can be executed as command line tool or Ant task.
java -jar zipdiff.jar --source foo.zip --target bar.zip [options]
Valid options are:
- --comparecrcvaluescompares the CRC values in addition to file size
- --comparetimestampscompares timestamps in addition to file size
- --excluderegex <regex>excludes file names matching regex from comparison
- --excludescmfilesexcludes SCM folders from comparison (SCCS, RCS, CVS, .svn, .bzr, .hg, .git)
- --output <name>name of the output file
- --trimoutputlevels <n>number of path segments to trim in the output file
- --trimsourcelevels <n>number of path segments to trim in the source file
- --trimtargetlevels <n>number of path segments to trim in the target file
- --errorondifferenceuse "error" return code (2) if differences have been detected rather than 1
- --verboseprint detailed messages
This version can be found at https://github.com/nhnb/zipdiff
The original zipdiff project was developed by Sean C. Sullivan and James Stewart at http://zipdiff.sourceforge.net/
License: see LICENSE.txt