2009-01-11 00:32:19 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
cd `dirname $0`
|
|
|
|
|
|
|
|
export CLASSPATH=.:jars:
|
|
|
|
for j in `find jars \( -name webtest -type d \) -prune -o -type f -name '*.jar' -print`; do
|
|
|
|
export CLASSPATH="$CLASSPATH":$j
|
|
|
|
done
|
|
|
|
export CLASSPATH="$CLASSPATH":/opt/java/lib/tools.jar
|
|
|
|
|
|
|
|
export java_lib_path="-Djava.library.path=include"
|
|
|
|
export headless="-Djava.awt.headless=true"
|
|
|
|
|
|
|
|
export standard_options="-enableassertions $java_lib_path $headless $jruby_home"
|
|
|
|
|
|
|
|
export memory_large="-Xmx1000m -XX:MaxDirectMemorySize=600M"
|
|
|
|
export memory_small="-Xmx200m -XX:MaxDirectMemorySize=200M"
|
|
|
|
|
|
|
|
export java_memory_large="java $standard_options $memory_large"
|
|
|
|
export java_memory_small="java $standard_options $memory_small"
|
|
|
|
|
2009-01-11 01:52:34 +01:00
|
|
|
export ED_HOME="jars/babble.jar"
|
|
|
|
|
2009-01-11 00:32:19 +01:00
|
|
|
$java_memory_small ed.db.Shell "$@"
|
|
|
|
|