sbt/sbt-assembly — pull request #50 by rjmac (2012-05-31 18:32:05+00:00)
Title: Topic/merging

Some tweaks to merging:
* The `LicenseFile` and `ReadMe` regexes wouldn't match files inside META-INF since "\w" doesn't match "-".
* Rather than making `deduplicate` special, add the notion of a "notify threshold" which determines how many duplicate filenames need to exist before a message about merging gets shown. (Incidentally: I don't like that `rename` is still special but I don't see a way around it, though the next bullet point may make it moot.)
* Prevent `rename` from breaking classes by suppressing renaming of directories (for package-names) and making `isLicenseFile` not match class files. The former also prevents failure when a renamable file lives inside a renamable directory. I don't particularly like either halves of this solution, but I couldn't come up with a better one.

I didn't write tests yet because it wasn't obvious how to run the ones that exist. Let me know and I'll add tests for the above cases.