clojure.java.classpath - java.classpath 1.1.0-SNAPSHOT API documentation (original) (raw)
Full namespace name: clojure.java.classpath
Overview
Utilities for dealing with the JVM's classpath
Protocols
URLClasspath
Protocol
Known implementations: java.net.URLClassLoader
urls
function
Usage: (urls loader)
Returns a sequence of java.net.URL objects representing locations which this classloader will search for classes and resources.
Public Variables and Functions
classpath
function
Usage: (classpath classloader) (classpath)
Returns a sequence of File objects of the elements on the classpath. Defaults to searching for instances of java.net.URLClassLoader in the classloader hierarchy above clojure.lang.RT/baseLoader or the given classloader. If no URLClassloader can be found, as on Java 9, falls back to the 'java.class'path' system property.
classpath-directories
function
Usage: (classpath-directories)
Returns a sequence of File objects for the directories on classpath.
classpath-jarfiles
function
Usage: (classpath-jarfiles)
Returns a sequence of JarFile objects for the JAR files on classpath.
filenames-in-jar
function
Usage: (filenames-in-jar jar-file)
Returns a sequence of Strings naming the non-directory entries in the JAR file.
get-urls
function
Usage: (get-urls loader)
Returns a sequence of java.net.URL objects used by this classloader, or nil if the classloader does not sastify the URLClasspath protocol.
jar-file?
function
Usage: (jar-file? f)
Returns true if file is a normal file with a .jar or .JAR extension.
loader-classpath
function
Usage: (loader-classpath loader)
Returns a sequence of File paths from a classloader.
system-classpath
function
Usage: (system-classpath)
Returns a sequence of File paths from the 'java.class.path' system property.