emuckenhuber/jboss-as — pull request #11 by jmesnil (2012-11-15 14:35:31+00:00)
Title: Patches checksum

I moved around code to regroup Checksum, I/O & zip utilities methods in 3 classes (HashUtils, ZipUtils and IoUtils) and removed code duplication.

I think it's better to use the same code for these for patch generation and application (esp. the way we compute checksum). E.g the checksum for patch generation was sorting the files returned by File.listFiles() while the checksum for patch application did not.

Only the last commit brings some functionality, I explicitly skip .jar.index files from the checksum. They are generated at runtime only and I think it'd be error prone to have different checksum for a same module depending on whether the AS7 installation was run or not.