From 9e3563d01399721a9754f7ae9a4404119505bb83 Mon Sep 17 00:00:00 2001 From: jem Date: Tue, 21 Jan 2020 19:24:01 +0100 Subject: [PATCH] found some clojure example --- src/cryogen_core/classpath_able_io.clj | 1 + test/cryogen_core/classpath_able_io_test.repl | 5 +++++ 2 files changed, 6 insertions(+) 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")) +