Files
MOTD/debug_build.sh
rattatwinko bb558bab48
Some checks failed
Maven Build / build (push) Failing after 10m31s
test 5
now with a building script
2025-05-10 15:43:08 +02:00

47 lines
908 B
Bash
Executable File

#!/bin/bash
# Debug script for build issues
echo "=== Environment Information ==="
echo "Current directory: $(pwd)"
echo "Java version:"
java -version
echo ""
echo "Maven version:"
mvn --version
echo ""
echo "=== Project structure ==="
find . -type f -name "*.kt" | sort
find . -type f -name "pom.xml"
echo ""
echo "=== Debugging build for MOTD ==="
echo "Changing to directory: "
cd
echo "Current directory: $(pwd)"
echo "Checking for POM file:"
ls -la pom.xml
echo "Checking Kotlin source files:"
find . -type f -name "*.kt" | sort
echo "Compiling Kotlin sources:"
mvn compile
echo "Checking for MOTDGuiHandler class:"
find . -type f -name "MOTDGuiHandler.kt"
grep -r "MOTDGuiHandler" --include="*.kt" .
echo ""
echo "Checking package structure:"
find ./src -type d | sort
echo ""
echo "Checking import statements in MOTDCommand.kt:"
grep -r "import" --include="MOTDCommand.kt" .
echo ""
cd ..