Re: Using java.ext.dirs to manage the Classpath for Clojure REPLs

2009-01-05 Thread Stuart Sierra
On Jan 4, 12:59 pm, "Stephen C. Gilardi" wrote: > In my case, I set the value of java.ext.dirs to a list of just one > directory. That directory contains (relative) symbolic links to all > the Jar files and directories I want Clojure to use as its Classpath. Symlinks! Ack! Terrible visions of

Re: Using java.ext.dirs to manage the Classpath for Clojure REPLs

2009-01-04 Thread Drew Raines
Stephen C. Gilardi wrote: > The "java.ext.dirs" System property provides a very convenient way to > set up and maintain a Classpath for Clojure REPLs. [...] > In my case, I set the value of java.ext.dirs to a list of just one > directory. That directory contains (relative) symbolic links to all

Re: Using java.ext.dirs to manage the Classpath for Clojure REPLs

2009-01-04 Thread rzeze...@gmail.com
On Jan 4, 6:06 pm, lpetit wrote: > Note that since JDK 1.6, it is possible to use the * wildcard in > classpath items to embed all the jars in a directory at once. > > So with proper use of links in a "root" directory containing a bunch > of jars, it's possible to shorten the classpath to DIR/*

Re: Using java.ext.dirs to manage the Classpath for Clojure REPLs

2009-01-04 Thread rzeze...@gmail.com
I think this should be fine for 99% of situations, but I think it's also fair to say this is an unorthodox use of java.ext.dirs. I've never really had a firm grip on the idiomatic use of Java's extension mechanism, but I do know that they claim it is for well-established extension/optional packag

Re: Using java.ext.dirs to manage the Classpath for Clojure REPLs

2009-01-04 Thread lpetit
Note that since JDK 1.6, it is possible to use the * wildcard in classpath items to embed all the jars in a directory at once. So with proper use of links in a "root" directory containing a bunch of jars, it's possible to shorten the classpath to DIR/*:classes:src BTW, java.ext.dirs' semantics i

Using java.ext.dirs to manage the Classpath for Clojure REPLs

2009-01-04 Thread Stephen C. Gilardi
The "java.ext.dirs" System property provides a very convenient way to set up and maintain a Classpath for Clojure REPLs. The property can be set from the command line used to launch Clojure (typically within a launcher script). Its value is a list of directories whose *contents* will be the