darkestperu.jar
Procedures for making JAR files and reading from them.
->file-entry
(->file-entry contents)
Generated constructor for the file-entry type.
->string-entry
(->string-entry contents)
Generated constructor for the string-entry type.
as-jar-file
(as-jar-file jar-fileable)
Makes a JarFile from JAR-FILEABLE, which has to be a valid input for
clj::clojure.java.io/as-file.
entry-to-bytes
multimethod
file-entry?
(file-entry? x__1834__auto__)
Generated predicate for the file-entry type.
jar-seq
(jar-seq jar-fileable)
Returns a sequence of the paths of the entries in JAR denoted by
JAR-FILEABLE.
make-jar
(make-jar jar-file manifest-map files-map)
Inputs: [jar-file manifest-map :- manifest/ManifestMap files-map]
Creates a JAR in JAR-FILE with a manifest made from MANIFEST-MAP and
containing the files from FILES-MAP.
FILES-MAP has to map the path to the file on disk to the path it should have
in the JAR. (The Javadoc for java.util.jar.JarEntry calls this the 'name' of
the entry.)
relativize-path
(relativize-path shallower deeper)
Expects that DEEPER is a path leading below SHALLOWER. Returns the relative
path to DEEPER starting from SHALLOWER.
DEEPER and SHALLOWER can be Strings or Files.
slurp-from-jar
(slurp-from-jar jar-fileable path)
Slurps the contents of the entry with PATH (as returned by jar-seq) from JAR
denoted by JAR-FILEABLE.
string-entry?
(string-entry? x__1834__auto__)
Generated predicate for the string-entry type.