diff options
Diffstat (limited to 'run')
-rwxr-xr-x | run | 33 |
1 files changed, 33 insertions, 0 deletions
@@ -0,0 +1,33 @@ +#!/bin/bash + +# Figure out where the Scala framework is installed +FWDIR=`dirname $0` + +# Set JAVA_OPTS to be able to load libnexus.so and set various other misc options +JAVA_OPTS="-Djava.library.path=$FWDIR/third_party:$FWDIR/src/native -Xmx750m" +if [ -e $FWDIR/conf/java-opts ] ; then + JAVA_OPTS+=" `cat $FWDIR/conf/java-opts`" +fi +export JAVA_OPTS + +# Build up classpath +CLASSPATH=$FWDIR/build/classes +CLASSPATH+=:$FWDIR/third_party/nexus.jar +CLASSPATH+=:$FWDIR/third_party/asm-3.2/lib/all/asm-all-3.2.jar +CLASSPATH+=:$FWDIR/third_party/colt.jar +CLASSPATH+=:$FWDIR/third_party/google-collect-1.0-rc5/google-collect-1.0-rc5.jar +CLASSPATH+=:$FWDIR/third_party/hadoop-0.20.0/hadoop-0.20.0-core.jar +CLASSPATH+=:third_party/scalatest-1.0/scalatest-1.0.jar +CLASSPATH+=:third_party/ScalaCheck-1.5.jar +for jar in $FWDIR/third_party/hadoop-0.20.0/lib/*.jar; do + CLASSPATH+=:$jar +done +export CLASSPATH + +if [ -n "$SCALA_HOME" ]; then + SCALA=${SCALA_HOME}/bin/scala +else + SCALA=scala +fi + +exec $SCALA -cp $CLASSPATH $@ |