NoIssue: Fix for build, run and publish

This commit is contained in:
2026-02-01 21:15:21 +01:00
parent a2fae04892
commit 8f907324ca
7 changed files with 37 additions and 30 deletions

17
src/main/docker/run.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/usr/bin/env bash
set -euo pipefail
shopt -s nullglob
jars=(libs/*.jar)
if (( ${#jars[@]} == 0 )); then
echo "ERROR: No JARs found in libs/" >&2
exit 1
fi
CLASSPATH=$(IFS=:; echo "${jars[*]}")
exec java \
-Dlog4j.configurationFile=/usr/local/software/nenjimhub/conf/log4j2.xml \
-cp "$CLASSPATH" \
com.r35157.nenjim.hubd.impl.ref.Main