CppPlugins/runall.sh

28 lines
529 B
Bash
Raw Normal View History

2020-02-20 04:28:05 +01:00
#!/bin/bash
2020-02-20 19:23:28 +01:00
#build java
2020-02-20 04:28:05 +01:00
mvn package
2020-02-20 19:23:28 +01:00
if [ "$?" -ne "0" ]; then
echo "Error"
exit 1
fi
#build cpp
2020-02-20 12:21:43 +01:00
rm target/*.so
2020-02-21 04:10:23 +01:00
make -j1 all #that makefile is not paralllizable
2020-02-20 19:23:28 +01:00
if [ "$?" -ne "0" ]; then
echo "Error"
exit 1
fi
2020-02-21 04:10:23 +01:00
sudo make install
#build and install all testplugins
make installplugins
2020-02-20 19:23:28 +01:00
#prepare server
2020-02-20 04:28:05 +01:00
mkdir -p testserver/plugins/CppPlugins
cp target/Cppplugin-0.1-SNAPSHOT-final.jar testserver/plugins/
cp target/libplugin.so testserver/plugins/CppPlugins
2020-02-20 19:23:28 +01:00
#start server
2020-02-20 04:28:05 +01:00
cd testserver
2020-02-20 19:23:28 +01:00
java -verbose:jni -jar spigot-1.12.2.jar