Skip to content
Snippets Groups Projects
Commit a51d1bc5 authored by Beat Küng's avatar Beat Küng Committed by Julian Oes
Browse files

jmavsim_run.sh: add optional -p <port> argument

parent 35e93c24
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,19 @@
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$SCRIPT_DIR/jMAVSim"
udp_port=14560
while getopts ":p:" opt; do
case $opt in
p)
udp_port=$OPTARG
;;
\?)
echo "Invalid option: -$OPTARG" >&2
exit 1
;;
esac
done
ant create_run_jar copy_res
cd out/production
java -Djava.ext.dirs= -jar jmavsim_run.jar -udp 127.0.0.1:14560
java -Djava.ext.dirs= -jar jmavsim_run.jar -udp 127.0.0.1:$udp_port
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment