On Dec 9, 2008, at 6:13 PM, Brian Doyle wrote:
Could you post your bash shell script that starts Clojure? I would like to see what you have concerning the new options that can be passed to the updated clojure.jar. Thanks.
[Reposting with a change and a correction: clojure.contrib.repl_ln now supports -i and --init args, $JAVAEXTDIR was an error.]
#!/bin/bash set -o errexit set -o nounset #set -o xtrace SQ=/sq CLJ=$SQ/clj ETC=$CLJ/etc LOCAL=$CLJ/local EXT=$SQ/ext CLOJURE=$EXT/clojure CONTRIB=$EXT/clojure-contrib SWANK=$EXT/swank-clojure EXTDIRS=$EXT/java/ext CLOJURESRC=$CLOJURE/src/clj CONTRIBSRC=$CONTRIB/src CPDIRS=$ETC:$LOCAL:$CONTRIBSRC:$CLOJURESRC:$SWANK INIT="--init $ETC/init.clj" JAVA=java OPTIONS="-Xms32M -Xmx128M -server" CLASSPATH="-cp $CPDIRS" JAVAEXTDIRS="-Djava.ext.dirs=$EXTDIRS" #MAIN="clojure.contrib.repl_ln $INIT" MAIN="clojure.main $INIT --repl" exec $JAVA $OPTIONS $CLASSPATH $JAVAEXTDIRS $MAIN $@I have symbolic links to clojure.jar and clojure-contrib.jar (and several more jars) in the one dir listed in $EXTDIRS. All jars within (or symbolic linked from within) the directories listed in the value of java.ext.dirs are classpath roots as well.
--Steve
smime.p7s
Description: S/MIME cryptographic signature