ALPHA - Not yet released
Note: currently only supports .clj
files.
Note: no explicit windowa support.
makejack.api.util
Helper functions to implement tools for makejack.
clj-source-file?
(clj-source-file? p)
Predicate for the given path being a clojure source file.
deep-merge-with
(deep-merge-with f & ms)
Merge maps recursively, using f to merge non-map keys
file-hashes
(file-hashes path)
Return a map with hash strings for the contents of the given path. The returned map has :md5 and :sha1 hash strings.
format-version-map
(format-version-map {:keys [major minor incremental qualifier]})
Format a version map as a string.
java-source-file?
(java-source-file? p)
Predicate for the given path being a java source file.
path->namespace
(path->namespace path-like)
Return namespaces found under the given root path.
project-source-files
(project-source-files filter-fn path-like)
Return all source files under path-like. Return a sequence of File objects relative to the current directory.
source-files
(source-files filter-fn path-like)
Return all source files under path-like. Return a sequence of File objects.