Examine the Java classpath from Clojure programs.
Releases and Dependency Information
Latest stable release is 0.2.3
Leiningen dependency information:
Maven dependency information:
<dependency> <groupId>org.clojure</groupId> <artifactId>java.classpath</artifactId> <version>0.2.3</version> </dependency>
Gradle dependency information:
Releases are published to the Maven Central Repository
Development SNAPSHOTs are published to the Sonatype Open-Source Repository
See the API Documentation
(require '[clojure.java.classpath :as cp]) (cp/classpath) ;; (#<File /foo/test> #<File /foo/src> ...)
classpath function returns a sequence of java.io.File objects
representing all JAR files and directories on the classpath. It
defaults to using the classpath of Clojure's base
classpath also takes a ClassLoader as an optional argument.
system-classpath function returns a sequence of
java.io.File objects parsed from the
java.class.path Java system
If you are using an environment which provides its own ClassLoader
implementation, such as a Java application server, you can extend the
URLClasspath to support it. Refer to the source for
Copyright and License
Copyright (c) 2013 Rich Hickey, Stuart Sierra, and contributors. All rights reserved. The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php) which can be found in the file epl.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software.