start-fitnesse.sh 472 Bytes
#!/bin/bash

SCRIPT=$(readlink -f "$0")
SCRIPTDIR=$(dirname "$SCRIPT")

if [ -z "${1}" ]; then
  echo "Usage : ${0} PORT"
  exit 1
else
  FITNESSE_PORT=${1}
fi;

. ${SCRIPTDIR}/amda-kernel-env

export PATH="${SCRIPTDIR}/../build/Debug/bin:${SCRIPTDIR}/../build/bin:$PATH"
TESTS_DIR="${SCRIPTDIR}/../test"
FITNESSE_JAR="${FITNESSE_ROOT}/fitnesse-standalone.jar"
cd ${SCRIPTDIR}/..
nohup java -Xmx1024m -jar "$FITNESSE_JAR" -d "$TESTS_DIR" -e 0 -p ${FITNESSE_PORT} &
exit 0