Stephen C. Gilardi wrote: > > On Feb 25, 2009, at 1:27 PM, Mark Colburn wrote: > >> #!/bin/sh >> DP="${0%/*}" >> java -cp ~/src/clojure/clojure.jar:${DP}/clj:${DP}/java - >> Dnet.sourceforge.waterfront.plugins=${DP}/clj/net/sourceforge/ >> waterfront/ide/plugins clojure.main ${DP}/clj/net/sourceforge/ >> waterfront/ide/main.clj $* > > I propose that we Clojure-using folks adopt CLOJURE_HOME as our > "standard" environment variable that can be used to find clojure.jar and > other interesting bits of Clojure. The proposed value of CLOJURE_HOME is > an absolute path to the top level of an svn checkout or binary > distribution of Clojure. > > Scripts would use $CLOJURE_HOME/clojure.jar (or its equivalent on > Windows) as the path to the current environment's preferred clojure.jar.
What's wrong with just putting the jars in your CLASSPATH and not requiring anything explicit in scripts? I just put all the jars I want to use with Clojure in a single directory, clojure/jars, and they get added automatically by my .bash_profile along with all the system installed jars: CLJ=$PROJECTS/clojure CLJ_DIR=$CLJ/jars CLJ_JARS=$(find $CLJ_DIR -name "*.jar" -exec printf {}: \;) SYS_DIR=/usr/share/java SYS_JARS=$(find $SYS_DIR -name "*.jar" -exec printf {}: \;) export CLASSPATH=$CLJ_LIBS:$HOME/sw/java:$SYS_JARS:$CLJ_JARS:. Seems to work pretty well. -Jeff --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---