(all-loaded coord)(all-loaded coord loader)returns all the loaded artifacts of the same group and name
(all-loaded 'org.clojure/clojure) ;;=> ('org.clojure:clojure:jar:<version>) => sequential?
returns all the loaded artifacts of the same group and name
(all-loaded 'org.clojure/clojure)
;;=> ('org.clojure:clojure:jar:<version>)
=> sequential?(all-loaded-artifacts)(all-loaded-artifacts type)(all-loaded-artifacts loader type)returns all loaded artifacts
(all-loaded-artifacts)
returns all loaded artifacts (all-loaded-artifacts)
(clean artifact {:keys [full simulate]})cleans the maven entries for the artifact, :full deletes all the versions
(clean '[org.clojure/clojure "2.4.8"] {:full true :simulate true}) => set?
cleans the maven entries for the artifact, `:full` deletes all the versions
(clean '[org.clojure/clojure "2.4.8"]
{:full true
:simulate true})
=> set?(current-version artifact)finds the current artifact version for a given classloader
(current-version 'org.clojure/clojure) => string?
finds the current artifact version for a given classloader (current-version 'org.clojure/clojure) => string?
(load coords)(load coords loader)loads all artifacts in list, unloading previous versions of the same artifact
loads all artifacts in list, unloading previous versions of the same artifact
(load-artifact coord)(load-artifact coord loader)loads an artifact into the system
(load-artifact '[org.clojure/clojure "1.9.0"])
loads an artifact into the system (load-artifact '[org.clojure/clojure "1.9.0"])
(loaded-artifact? coord)(loaded-artifact? coord loader)checks if artifact has been loaded
(loaded-artifact? '[org.clojure/clojure "1.9.0"]) => true
checks if artifact has been loaded (loaded-artifact? '[org.clojure/clojure "1.9.0"]) => true
(resolve x)(resolve x context)(resolve x context {:keys [tag] :or {tag :path} :as opts})resolves a class or namespace within a context
(resolve 'clojure.core ['org.clojure/clojure (current-version 'org.clojure/clojure)]) => (contains [string? "clojure/core.clj"])
(resolve 'wrong.namespace ["org.clojure:clojure:1.9.0"] {:tag :coord}) => nil
resolves a class or namespace within a context
(resolve 'clojure.core
['org.clojure/clojure
(current-version 'org.clojure/clojure)])
=> (contains [string?
"clojure/core.clj"])
(resolve 'wrong.namespace
["org.clojure:clojure:1.9.0"]
{:tag :coord})
=> nil(resolve-classloader x)(resolve-classloader x loader)resolves a class or namespace to a physical location
(resolve-classloader String) => (contains [anything #"java/lang/String.class"])
(resolve-classloader 'hara.test) => (contains [nil (str (fs/path "src/hara/test.clj"))])
resolves a class or namespace to a physical location
(resolve-classloader String)
=> (contains
[anything #"java/lang/String.class"])
(resolve-classloader 'hara.test)
=> (contains
[nil (str (fs/path "src/hara/test.clj"))])(resolve-jar-entry x artifact)(resolve-jar-entry x artifact {:keys [tag] :or {tag :path}})resolves a class or namespace within a jar
(resolve-jar-entry 'clojure.core ['org.clojure/clojure (current-version 'org.clojure/clojure)]) => (contains-in [string? "clojure/core.clj"])
(resolve-jar-entry 'clojure.core "org.clojure:clojure:1.9.0" {:tag :coord}) => '[[org.clojure/clojure "1.9.0"] "clojure/core.clj"]
resolves a class or namespace within a jar
(resolve-jar-entry 'clojure.core
['org.clojure/clojure
(current-version 'org.clojure/clojure)])
=> (contains-in [string?
"clojure/core.clj"])
(resolve-jar-entry 'clojure.core
"org.clojure:clojure:1.9.0"
{:tag :coord})
=> '[[org.clojure/clojure "1.9.0"]
"clojure/core.clj"](unload coords)(unload coords loader version)unloads all artifacts in list
unloads all artifacts in list
(unload-artifact coord)(unload-artifact coord loader)unloads an artifact from the system
(unload-artifact '[org.clojure/clojure "1.9.0"])
unloads an artifact from the system (unload-artifact '[org.clojure/clojure "1.9.0"])
(version-map)returns all the loaded artifacts and their versions (version-map) => map?
returns all the loaded artifacts and their versions (version-map) => map?
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |