Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 15 lines (14 sloc) 413 Bytes
mkdir -p `dirname $0`target/
port=$1
echo Launching servers listering on $port
mvn -Pserver -Dhttp.server.port=$port > target/server-port-$port.log &
echo Waiting for the servers to be up and listening
succeed=`nc -z localhost $port | grep -i succeed | wc -l`
while [ $succeed -lt 1 ]
do
echo -n .
sleep 1
succeed=`nc -z localhost $port | grep -i succeed | wc -l`
done
echo
echo Server on port $port is ready
Something went wrong with that request. Please try again.