Advertisement
Guest User

Untitled

a guest
Feb 7th, 2016
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. (defproject cptest "0.1.0-SNAPSHOT"
  2. :description "classpath test"
  3. :url "http://example.com/FIXME"
  4. :license {:name "Eclipse Public License"
  5. :url "http://www.eclipse.org/legal/epl-v10.html"}
  6. :dependencies [[org.clojure/clojure "1.7.0"]
  7. [org.clojure/java.classpath "0.2.2"]]
  8. :profiles {:uberjar {:aot :all}}
  9. :main cptest.core)
  10.  
  11. (ns cptest.core
  12. (:require [clojure.java.classpath :as cp])
  13. (:gen-class))
  14.  
  15. (defn -main [& args]
  16. (println "Classpath directories" (cp/classpath-directories)))
  17.  
  18. `Classpath directories (#object[java.io.File 0x14555e0a /home/phil/cptest/src] #object[java.io.File 0x4bb33f74 /home/phil/cptest/target/classes])`
  19.  
  20. `java -jar /home/phil/cptest/target/cptest-0.1.0-SNAPSHOT-standalone.jar`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement