Remove hacky jar multimethod.

This commit is contained in:
Phil Hagelberg 2011-06-23 20:21:53 -07:00
parent 7137730e90
commit d7287cf928

View file

@ -129,9 +129,6 @@
(.putNextEntry jar-os (JarEntry. (:path spec)))
(copy (ByteArrayInputStream. (:bytes spec)) jar-os))
;; TODO: hacky; needed for conditional :resources-path below
(defmethod copy-to-jar nil [project jar-os spec])
(defn write-jar [project out-filename filespecs]
(let [manifest (make-manifest project)]
(with-open [jar-os (-> out-filename
@ -168,11 +165,11 @@
(:group project)
(:name project))
:bytes (make-pom-properties project)}
(when (and (:resources-path project)
(.exists (file (:resources-path project))))
{:type :path :path (:resources-path project)})
{:type :path :path (:compile-path project)}
{:type :path :path (str (:root project) "/project.clj")}]
(when (and (:resources-path project)
(.exists (file (:resources-path project))))
[{:type :path :path (:resources-path project)}])
(when-not (:omit-source project)
[{:type :path :path (:source-path project)}])
(shell-wrapper-filespecs project deps-fileset)))