Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 18 lines (13 sloc) 408 Bytes
#!/bin/bash
options[0]="configFile=`pwd`/example-config.yml"
options[1]="log4j.configuration=`pwd`/log4j.properties"
JVM_OPTS="-server"
EXECUTABLE="-jar octobot.jar"
CLASSPATH="-cp ../tasks.jar:../lib/scala-library.jar"
for i in "${options[@]}"
do
JVM_OPTS="$JVM_OPTS -D$i "
done
echo -e "Launching Octobot...\n"
echo -e "Options specified: $JVM_OPTS\n"
cd jar && java $JVM_OPTS $CLASSPATH $EXECUTABLE