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.
Here it is:
#!/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
JAVA=java
OPTIONS="-Xms32M -Xmx128M -server"
CLASSPATH="-cp $CPDIRS"
JAVAEXTDIRS="-Djava.ext.dirs=$EXTDIRS"
#MAIN="clojure.contrib.repl_ln"
MAIN="clojure.main --init $ETC/init.clj --repl"
exec $JAVA $OPTIONS $CLASSPATH $JAVAEXTDIRS $MAIN $@
I have symbolic links to clojure.jar and clojure-contrib.jar (and
several more jars) in $JAVAEXTDIR. All jars within (or symbolic linked
from within) the directories listed in the value of java.ext.dirs are
classpath roots as well.
clojure.contrib.repl_ln (commented out as an alternate MAIN above) doesn't currently handle --init args. I think it should and I'll put that in soon.
--Steve
smime.p7s
Description: S/MIME cryptographic signature
