[CI-SKIP] Update test server rebuild logic
Many times I've ran paper test trying to SHUTDOWN the existing test server, only for it to see that my target folder is missing (for whatever reason), and it try to build paper to make the jar exists. Well, the patch process will wipe out any uncommitted changes, causing loss of work. Now we will only build patches if your missing your entire Paper-Server folder, and only trigger a mvn compile if the jar is missing.
This commit is contained in:
parent
97b9ce8476
commit
49f584a14b
|
@ -63,17 +63,24 @@ fi
|
||||||
# JAR CHECK
|
# JAR CHECK
|
||||||
#
|
#
|
||||||
|
|
||||||
jar="$basedir/Paper-Server/target/paper-${minecraftversion}.jar"
|
folder="$basedir/Paper-Server"
|
||||||
|
jar="$folder/target/paper-${minecraftversion}.jar"
|
||||||
|
if [ ! -d "$folder" ]; then
|
||||||
|
(
|
||||||
|
echo "Building Patched Repo"
|
||||||
|
cd "$basedir"
|
||||||
|
./paper patch
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
|
||||||
if [ ! -f "$jar" ] || [ "$2" == "build" ] || [ "$3" == "build" ]; then
|
if [ ! -f "$jar" ] || [ "$2" == "build" ] || [ "$3" == "build" ]; then
|
||||||
(
|
(
|
||||||
echo "Building Paper"
|
echo "Building Paper"
|
||||||
cd "$basedir"
|
cd "$basedir"
|
||||||
./paper patch
|
mvn package
|
||||||
mvn clean install
|
|
||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# JVM FLAGS
|
# JVM FLAGS
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue