Liking cljdoc? Tell your friends :D

puppetlabs.kitchensink.classpath


add-classpathclj

(add-classpath jar-or-dir)
(add-classpath jar-or-dir classloader)

A corollary to the (deprecated) add-classpath in clojure.core. This implementation requires a java.io.File or String path to a jar file or directory, and will attempt to add that path to the right classloader (with the search rooted at the current thread's context classloader).

Because this function is a replacement for add-classpath in clojure.core, if you simply :require this namespace and then :refer to this function, you will get the following warning:

WARNING: add-classpath already refers to: #'clojure.core/add-classpath in namespace: [...], being replaced by: #'puppetlabs.kitchensink.classpath/add-classpath

You can avoid this by referencing this function through its namespace.

This function is copied out of the 'pomegranate' library (https://github.com/cemerick/pomegranate).

A corollary to the (deprecated) `add-classpath` in clojure.core. This implementation
requires a java.io.File or String path to a jar file or directory, and will attempt
to add that path to the right classloader (with the search rooted at the current
thread's context classloader).

Because this function is a replacement for `add-classpath` in clojure.core,
if you simply `:require` this namespace and then `:refer` to this function, you
will get the following warning:

   WARNING: add-classpath already refers to: #'clojure.core/add-classpath in
   namespace: [...], being replaced by:
   #'puppetlabs.kitchensink.classpath/add-classpath

You can avoid this by referencing this function through its namespace.

This function is copied out of the 'pomegranate' library
(https://github.com/cemerick/pomegranate).
sourceraw docstring

jar-or-dir-to-urlclj

(jar-or-dir-to-url jar-or-dir)

Given the path to a jar file or a directory, return a java.net.URL object suitable for using with a URLClassLoader

Given the path to a jar file or a directory, return a `java.net.URL`
object suitable for using with a `URLClassLoader`
sourceraw docstring

with-additional-classpath-entriescljmacro

(with-additional-classpath-entries jars-and-dirs & body)

This macro takes a list of paths as an argument. It then temporarily overrides the classpath to include the specified paths; the original classpath is restored prior to returning.

This macro takes a list of paths as an argument.  It then temporarily
overrides the classpath to include the specified paths; the original
classpath is restored prior to returning.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close