no longer needed

This commit is contained in:
jem 2020-02-07 20:23:27 +01:00
parent f92f674680
commit cd56f9a561

View file

@ -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"))))))))))))