diff --git a/src/cryogen_core/classpath_able_io.clj b/src/cryogen_core/classpath_able_io.clj index 4019448..57db39f 100644 --- a/src/cryogen_core/classpath_able_io.clj +++ b/src/cryogen_core/classpath_able_io.clj @@ -185,6 +185,7 @@ :else (recur (into (drop 1 paths) (map #(str path-to-work-with "/" %) + ; Bsp-Code: https://github.com/clojure/java.classpath/blob/c10fc96a8ff98db4eb925a13ef0f5135ad8dacc6/src/main/clojure/clojure/java/classpath.clj#L50 (.list (io/file (.toString (:java-path resource-to-work-with)))))) ; TODO doesnt work in jars result)))) result))) diff --git a/test/cryogen_core/classpath_able_io_test.repl b/test/cryogen_core/classpath_able_io_test.repl index eab9791..431eb14 100644 --- a/test/cryogen_core/classpath_able_io_test.repl +++ b/test/cryogen_core/classpath_able_io_test.repl @@ -19,3 +19,8 @@ TODO: to solve reading from jars: (into-array String '())) (into-array java.nio.file.LinkOption {})) +(some? (sut/resource-from-cp-or-fs + "not-existing-filesystem-path" + "" + "dummy")) +