Skip to content

Commit

Permalink
Merge pull request technomancy#1432 from jcrossley3/filespec-dirs
Browse files Browse the repository at this point in the history
Filter out directories matching readme/license prefix
  • Loading branch information
technomancy committed Jan 31, 2014
2 parents f2008d3 + 9e598e1 commit c50c7ee
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/leiningen/jar.clj
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,11 @@
:bytes (.getBytes (slurp (str (:root project) "/project.clj")))}
{:type :bytes :path "project.clj"
:bytes (.getBytes (slurp (str (:root project) "/project.clj")))}]
(for [doc (concat readmes licenses)]
{:type :bytes :path (scope doc)
:bytes (.getBytes (slurp (io/file (:root project) doc)))})
(for [doc (map (partial io/file (:root project))
(concat readmes licenses))
:when (.isFile doc)]
{:type :bytes :path (scope (.getName doc))
:bytes (.getBytes (slurp doc))})
[{:type :path :path (:compile-path project)}
{:type :paths :paths (:resource-paths project)}]
(if-not (:omit-source project)
Expand Down

0 comments on commit c50c7ee

Please sign in to comment.