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