Code Monkey home page Code Monkey logo

java.classpath's Introduction

java.classpath

Examine the Java classpath from Clojure programs.

Releases and Dependency Information

This project follows the version scheme MAJOR.MINOR.PATCH where each component provides some relative indication of the size of the change, but does not follow semantic versioning. In general, all changes endeavor to be non-breaking (by moving to new names rather than by breaking existing names).

Latest stable release is 1.0.0

CLI/deps.edn dependency information:

org.clojure/java.classpath {:mvn/version "1.0.0"}

Leiningen dependency information:

[org.clojure/java.classpath "1.0.0"]

Maven dependency information:

<dependency>
  <groupId>org.clojure</groupId>
  <artifactId>java.classpath</artifactId>
  <version>1.0.0</version>
</dependency>

Gradle dependency information:

compile "org.clojure:java.classpath:1.0.0"

Other versions:

Releases are published to the Maven Central Repository

Development SNAPSHOTs are published to the Sonatype Open-Source Repository

Usage

See the API Documentation

Examples:

(require '[clojure.java.classpath :as cp])

(cp/classpath)
;; (#<File /foo/test> #<File /foo/src> ...)

The 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 ClassLoader.

classpath also takes a ClassLoader as an optional argument.

Alternatively, the system-classpath function returns a sequence of java.io.File objects parsed from the java.class.path Java system property.

If you are using an environment which provides its own ClassLoader implementation, such as a Java application server, you can extend the protocol URLClasspath to support it. Refer to the source for details.

Starting with version 0.3.0, the classpath function will fall back to the java.class.path system property if the parent ClassLoader is not an instance of URLClassLoader, which is true for Java 9 and later.

Developer Information

Copyright (c) 2013-2020 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 (https://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.

java.classpath's People

Contributors

abedra avatar hugoduncan avatar jafingerhut avatar puredanger avatar seancorfield avatar stuarthalloway avatar timmc avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.