This commit is contained in:
Bane Stojkovic
2025-03-24 20:47:12 +01:00
parent b7d482cfcf
commit 3b987e2b16
2 changed files with 61 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
#!/bin/bash
# Get the directory where this script is located
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Set DEBUG environment variable
export DEBUG=true
# Build classpath from lib and library directories
CLASSPATH=""
for jar in "$SCRIPT_DIR/../lib"/*.jar "$SCRIPT_DIR/../library"/*.jar; do
if [ -f "$jar" ]; then
CLASSPATH="$CLASSPATH:$jar"
fi
done
# Remove leading colon
CLASSPATH="${CLASSPATH#:}"
# Run the VersionReader class
java -cp "$CLASSPATH" org.diylc.utils.VersionReader "$SCRIPT_DIR/../"