For a better experience with the mvel shell, try running it via the JLine ConsoleRunner (http://jline.sourceforge.net). Here is a simple script that starts the shell via the JLine ConsoleRunner:
-------
#!/bin/bash
Runs mvel shell with jLine and using the classpath specified in the `.mvel` file of the
current directory.
BIN_DIR=/usr/local/bin
JAVA=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin/java
1 Comment
Hide/Show CommentsApr 22, 2010
Roumen Roupski
Nice work! Simple and very useful language.
For a better experience with the mvel shell, try running it via the JLine ConsoleRunner (http://jline.sourceforge.net). Here is a simple script that starts the shell via the JLine ConsoleRunner:
-------
#!/bin/bash
BIN_DIR=/usr/local/bin
JAVA=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin/java
JLINE=$BIN_DIR/jline-0_9_5.jar
MVEL=$BIN_DIR/mvel2-2.0.17.jar
CP=$PWD:$MVEL:$JLINE
if [ -f .mvel ]
then
CP=$CP:`cat .clojure`
fi
$JAVA -server -cp $CP jline.ConsoleRunner org.mvel2.sh.Main
-------
Thanks,
Roumen