Skip to content

Commit

Permalink
less strict classpath handling
Browse files Browse the repository at this point in the history
  • Loading branch information
thheller committed Feb 6, 2019
1 parent c1a6422 commit ee1edc0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/shadow/build/classpath.clj
Original file line number Diff line number Diff line change
Expand Up @@ -632,8 +632,10 @@
(and (.isFile file) (util/is-jar? (.getName file)))
(find-jar-resources cp file)

;; silently ignore all other cases since we can't do anything with them anyways
;; don't throw since java doesn't throw either
:else
(throw (ex-info "classpath entry that is not a directory or jar file" {:entry file}))))
{}))

(defn should-exclude-classpath [exclude ^File file]
(let [abs-path (.getAbsolutePath file)]
Expand Down

0 comments on commit ee1edc0

Please sign in to comment.