CppPlugins/runall.sh

24 lines
456 B
Bash
Executable File

#!/bin/bash
#build java
mvn package
if [ "$?" -ne "0" ]; then
echo "Error"
exit 1
fi
#build cpp
rm target/*.so
make -j1 all #that makefile is not paralllizable
if [ "$?" -ne "0" ]; then
echo "Error"
exit 1
fi
#prepare server
mkdir -p testserver/plugins/CppPlugins
cp target/Cppplugin-0.1-SNAPSHOT-final.jar testserver/plugins/
cp target/libplugin.so testserver/plugins/CppPlugins
#start server
cd testserver
java -verbose:jni -jar spigot-1.12.2.jar