formatting
This commit is contained in:
parent
c6559f8a3e
commit
87901a0e91
13 changed files with 131 additions and 136 deletions
|
@ -127,8 +127,7 @@
|
||||||
(when (this/is-dir? resource)
|
(when (this/is-dir? resource)
|
||||||
(Files/createDirectories target-path fs/no-attributes))
|
(Files/createDirectories target-path fs/no-attributes))
|
||||||
(when (this/is-file? resource)
|
(when (this/is-file? resource)
|
||||||
(Files/copy source-path target-path fs/overwrite-preserve-attributes)
|
(Files/copy source-path target-path fs/overwrite-preserve-attributes)))))))
|
||||||
))))))
|
|
||||||
|
|
||||||
(defn distinct-resources-by-path
|
(defn distinct-resources-by-path
|
||||||
[resources]
|
[resources]
|
||||||
|
|
|
@ -42,8 +42,7 @@
|
||||||
(when (some? java-path)
|
(when (some? java-path)
|
||||||
(if is-jar-resource
|
(if is-jar-resource
|
||||||
(jar/create-resource virtual-path java-path)
|
(jar/create-resource virtual-path java-path)
|
||||||
(fs/create-resource virtual-path java-path :java-classpath-filesystem))
|
(fs/create-resource virtual-path java-path :java-classpath-filesystem))))))
|
||||||
))))
|
|
||||||
|
|
||||||
(s/defn get-resources ;:- [this/Resource]
|
(s/defn get-resources ;:- [this/Resource]
|
||||||
"base-path is sensible for getting the right jar from classpath. So base-path
|
"base-path is sensible for getting the right jar from classpath. So base-path
|
||||||
|
|
|
@ -21,7 +21,6 @@
|
||||||
(is
|
(is
|
||||||
(sut/path-if-exists "dummy_only_in_cp_fs")))
|
(sut/path-if-exists "dummy_only_in_cp_fs")))
|
||||||
|
|
||||||
|
|
||||||
(deftest should-get-resources-from-jar-and-fs-classpath
|
(deftest should-get-resources-from-jar-and-fs-classpath
|
||||||
(is (=
|
(is (=
|
||||||
[]
|
[]
|
||||||
|
|
|
@ -38,7 +38,6 @@
|
||||||
(is
|
(is
|
||||||
(sut/path-if-exists fs-root nil "/dummy/dummy_from_fs")))
|
(sut/path-if-exists fs-root nil "/dummy/dummy_from_fs")))
|
||||||
|
|
||||||
|
|
||||||
(deftest test-list-entries-for-dir
|
(deftest test-list-entries-for-dir
|
||||||
(is
|
(is
|
||||||
(= ["dummy2"
|
(= ["dummy2"
|
||||||
|
|
|
@ -16,8 +16,7 @@
|
||||||
|
|
||||||
(deftest test-is-from-classpath-jar?
|
(deftest test-is-from-classpath-jar?
|
||||||
(is
|
(is
|
||||||
(sut/is-from-classpath-jar? (.toURI (io/resource "dummy"))))
|
(sut/is-from-classpath-jar? (.toURI (io/resource "dummy")))))
|
||||||
)
|
|
||||||
|
|
||||||
(deftest test-path-if-exists
|
(deftest test-path-if-exists
|
||||||
(is
|
(is
|
||||||
|
|
Loading…
Reference in a new issue