liebke / cljr

cljr is a Clojure REPL and package management system.
236 stars 11 forks source link

How to use a different clojure/clojure-contrib jar? #4

Closed taoeffect closed 14 years ago

taoeffect commented 14 years ago

I'd like to work with the latest clojure.jar and clojure-contrib.jar files that I've built from their respective repos, how do I get clj to use them?

liebke commented 14 years ago

That isn't really possible yet, but I'm looking at adding functionality similar to Ruby's rvm.

taoeffect commented 14 years ago

Can't you make it so that 'clj' respects the CLOJURE_HOME environment variable?

I think we should move as a community to make that a standard. Where CLOJURE_HOME points to a directory (not ending in a '/') that contains clojure.jar and possibly clojure-contrib.jar

liebke commented 14 years ago

I'm not sure if I'll use the CLOJURE_HOME approach. I'm thinking more along the lines of Ruby's rvm.

taoeffect commented 14 years ago

OK, didn't know about rvm so I just looked it up. It seems neat, but looks complicated and like it could take a while to implement, why not support both approaches? Of course you don't have to, just curious.

liebke commented 14 years ago

CLOJURE_HOME option added, see options section of README.

taoeffect commented 14 years ago

Awesome! :-)