no longer needed
This commit is contained in:
parent
f92f674680
commit
cd56f9a561
1 changed files with 0 additions and 43 deletions
|
@ -1,43 +0,0 @@
|
|||
TODO: to solve reading from jars:
|
||||
1. create fs
|
||||
|
||||
|
||||
(FileSystems/newFileSystem
|
||||
(java.net.URI.
|
||||
"jar:file:/home/jem/.m2/repository/dda/dummy/0.1.0-SNAPSHOT/dummy-0.1.0-SNAPSHOT.jar")
|
||||
{})
|
||||
|
||||
|
||||
2. be able to use it
|
||||
|
||||
(Files/exists
|
||||
(.getPath
|
||||
(FileSystems/getFileSystem
|
||||
(java.net.URI.
|
||||
"jar:file:/home/jem/.m2/repository/dda/dummy/0.1.0-SNAPSHOT/dummy-0.1.0-SNAPSHOT.jar"))
|
||||
"dummy"
|
||||
(into-array String '()))
|
||||
(into-array java.nio.file.LinkOption {}))
|
||||
|
||||
(some? (sut/resource-from-cp-or-fs
|
||||
"not-existing-filesystem-path"
|
||||
""
|
||||
"dummy"))
|
||||
|
||||
|
||||
(filter
|
||||
#(str/starts-with? % "dummy")
|
||||
(map
|
||||
#(.getName ^JarEntry %)
|
||||
(enumeration-seq
|
||||
(.entries
|
||||
(JarFile.
|
||||
(.toFile
|
||||
(Paths/get
|
||||
(URI.
|
||||
(.getSchemeSpecificPart
|
||||
(filesystem-uri
|
||||
(:java-uri (resource-from-cp-or-fs
|
||||
"not-existing-filesystem-path"
|
||||
""
|
||||
"dummy"))))))))))))
|
Loading…
Reference in a new issue