[#469] Fix classpath on Windows for .jar files
This commit is contained in:
parent
070ff2449e
commit
6ce94bdd86
1 changed files with 3 additions and 1 deletions
|
|
@ -62,7 +62,9 @@
|
|||
(defn source-for-namespace [loader namespace opts]
|
||||
(let [ns-str (name namespace)
|
||||
^String ns-str (munge ns-str)
|
||||
base-path (.replace ns-str "." (System/getProperty "file.separator"))
|
||||
;; do NOT pick the platform specific file separator here, since that doesn't work for searching in .jar files
|
||||
;; (io/file "foo" "bar/baz") does work on Windows, despite the forward slash
|
||||
base-path (.replace ns-str "." "/")
|
||||
resource-paths (mapv #(str base-path %) [".bb" ".clj" ".cljc"])]
|
||||
(getResource loader resource-paths opts)))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue