weavejester/lein-ring — Issue #25: throws a duplicate entry ZipException
Author: torrens
Created: 2012-02-19 21:03:59+00:00
State: open

Executing war or uberwar on my Mac now throws a duplicate entry ZipException. This is caused by the .DS_Sore file in each directory on my MAC. Same kind of problem would happen if you were using svn. I have fixed this locally with the following change in war.clj.

(defn skip-file? [project war-path file]
(or (re-find #"^\.?#" (.getName file))
(re-find #"~$" (.getName file))
(re-find #".DS_Store" (.getName file))
(some #(re-find % war-path)
(get-in project [:ring :war-exclusions]))))