mc-glowstone/scripts/test.sh
mastercoms f73fe27483 finalize Gradle implementation
* fix lombok version being set as the project version
* implement maven publish
* fix JAR name containing versions and -all for main JAR
* update gradle
* update JDK to 17 (LTS)
* move to adoptium JDK (latest vendor-neutral JDK)
* update gradle cache to consider lib versions
* update various github action versions
* update various paths to gradle equivalents
* fix lib versions being inconsistent
2022-06-13 14:59:26 -04:00

20 lines
422 B
Bash
Executable file

#!/bin/bash
# Run script within the directory
BINDIR=$(dirname "$(readlink -fn "$0")")
cd "$BINDIR"
# Build or just do a straight run?
if [ "$1" != "run" ];
then
# Build
./build.sh
fi
# Check if Maven built successfully
# or if we didn't build, just run
if [ $? -eq 0 ] || [ "$1" == "run" ];
then
# Run Glowstone
(cd ../build/libs && ../../scripts/start.sh)
else
echo "Glowstone did not build successfully."
fi