1.2.0 permalink Arrow_down_16x16
  • (classpath)
Returns a sequence of File objects of the elements on CLASSPATH.

1 Example top

  • ;; 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=> 
Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/contrib/classpath.clj:23 top

(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"))))
Vars in clojure.contrib.classpath/classpath: defn map
Used in 0 other vars

Comments top

No comments for classpath. Log in to add a comment.