;; assuming that the clojure.contrib/java.classpath .jar ;; is in your classpath (https://github.com/clojure/java.classpath/) user=> (require '[clojure.java.classpath :as cp]) nil user=> (cp/classpath) (#<File .> #<File /Users/klauer/.lein/self-installs/leiningen-2.0.0-preview3-standalone.jar>) user=>
Returns a sequence of File objects of the elements on CLASSPATH.
Returns a sequence of JarFile objects for the JAR files on classpath.
Returns a sequence of File objects for the directories on classpath.
(defn classpath
"Returns a sequence of File objects of the elements on CLASSPATH."
[]
(map #(File. %)
(.split (System/getProperty "java.class.path")
(System/getProperty "path.separator"))))
Comments top
No comments for classpath. Log in to add a comment.