Gruppe-02-clone/Projekte/battleship/run.sh

20 lines
582 B
Bash
Raw Permalink Normal View History

2024-10-05 11:58:12 +02:00
#!/bin/bash
# Starts two clients and the server
# export JAVA_OPTS="-Duser.language=fr -Duser.region=FR -Djava.util.logging.config.file=logging.properties"
# export JAVA_OPTS="-Duser.language=en -Duser.region=US -Djava.util.logging.config.file=logging.properties"
export JAVA_OPTS="-Djava.util.logging.config.file=logging.properties"
export CWD=`pwd`/`dirname $0`
cd $CWD/..
./gradlew installDist
cd battleship/client
build/install/battleship/bin/battleship &
sleep 3
build/install/battleship/bin/battleship &
cd ../server
build/install/battleship-server/bin/battleship-server