blob: 4fc75746ca7d387dcda1e413db5ef5381b857145 [file] [log] [blame]
Simon Hunt4d99c292015-06-04 18:09:35 -07001#######------------------------------------------------------------
2# CORD Demo
3# =========
4
Jonathan Hart4809de72015-06-05 09:37:12 -07005export LISTENPORT=8080
Simon Hunt4d99c292015-06-04 18:09:35 -07006export JETTY="-jar jetty-runner.jar"
7export CORD=./cord-gui-1.2.0-SNAPSHOT.war
8export LOGDBG=-Dorg.onosproject.cord.gui.LEVEL=DEBUG
9export DEBUG="-Xdebug -Xrunjdwp:transport=dt_socket,address=5005,server=y,suspend=n"
10export LOG=cord.log
11
12IP="$1"
13PORT="$2"
14
15if [ ! -z "$IP" ]
16then
17 PARAM1="-Dheadnodeip=$IP"
18else
19 PARAM1=""
20fi
21
22if [ ! -z "$PORT" ]
23then
24 PARAM2="-Dheadnodeport=$PORT"
25else
26 PARAM2=""
27fi
28
Jonathan Hart4809de72015-06-05 09:37:12 -070029java $PARAM1 $PARAM2 $LOGDBG $JETTY --port $LISTENPORT $CORD >$LOG 2>&1 &
30#java $PARAM1 $PARAM2 $LOGDBG $DEBUG $JETTY --port $LISTENPORT $CORD >$LOG 2>&1 &
Simon Hunt4d99c292015-06-04 18:09:35 -070031
32echo jetty-runner started {$PARAM1:$PARAM2}
33echo .. logging to $LOG