Blame view

script/start-fitnesse.sh 472 Bytes
fbe3c2bb   Benjamin Renard   First commit
1
2
#!/bin/bash

6c8de11c   Benjamin Renard   Remove hard coded...
3
4
SCRIPT=$(readlink -f "$0")
SCRIPTDIR=$(dirname "$SCRIPT")
7bde1dd3   Benjamin Renard   Remove hard coded...
5

fbe3c2bb   Benjamin Renard   First commit
6
7
8
9
10
11
12
if [ -z "${1}" ]; then
  echo "Usage : ${0} PORT"
  exit 1
else
  FITNESSE_PORT=${1}
fi;

6c8de11c   Benjamin Renard   Remove hard coded...
13
. ${SCRIPTDIR}/amda-kernel-env
fbe3c2bb   Benjamin Renard   First commit
14

6bfeb514   Benjamin Renard   Fix script used t...
15
export PATH="${SCRIPTDIR}/../build/Debug/bin:${SCRIPTDIR}/../build/bin:$PATH"
3eb67c8c   Benjamin Renard   Copy amda.propert...
16
17
TESTS_DIR="${SCRIPTDIR}/../test"
FITNESSE_JAR="${FITNESSE_ROOT}/fitnesse-standalone.jar"
6bfeb514   Benjamin Renard   Fix script used t...
18
cd ${SCRIPTDIR}/..
3eb67c8c   Benjamin Renard   Copy amda.propert...
19
nohup java -Xmx1024m -jar "$FITNESSE_JAR" -d "$TESTS_DIR" -e 0 -p ${FITNESSE_PORT} &
fbe3c2bb   Benjamin Renard   First commit
20
exit 0