Finish log4j implementation

This commit is contained in:
Jan-Niclas Loosen
2025-10-28 15:32:34 +01:00
parent 3795ab9d29
commit f578691c25
6 changed files with 55 additions and 35 deletions

View File

@@ -25,13 +25,18 @@ if [ -d "$LIB" ]; then
done
fi
# 3. Create manifest
# 3. Copy resources (including log4j2.xml) into the JAR
if [ -d "resources" ]; then
cp -r resources/* "$TMP/"
fi
# 4. Create manifest
echo "Main-Class: $MAIN_CLASS" > "$TMP/MANIFEST.MF"
# 4. Package into single jar
# 5. Package into single jar
jar cfm "$OUT/$JAR_NAME" "$TMP/MANIFEST.MF" -C "$TMP" .
# 5. Clean temporary files
# 6. Clean temporary files
rm -rf "$TMP"
echo "Built: $OUT/$JAR_NAME"