mirror of
https://github.com/arsvendg/Stirling-PDF.git
synced 2026-07-16 19:33:11 +02:00
fix(aot): use Spring Boot exploded layer format for aot cache (#5811)
This commit is contained in:
@@ -803,6 +803,11 @@ if [ "$AOT_GENERATE_BACKGROUND" = true ]; then
|
|||||||
generate_aot_cache "$AOT_CACHE" -cp "/app/app.jar:/app/lib/*" stirling.software.SPDF.SPDFApplication
|
generate_aot_cache "$AOT_CACHE" -cp "/app/app.jar:/app/lib/*" stirling.software.SPDF.SPDFApplication
|
||||||
elif [ -f /app.jar ]; then
|
elif [ -f /app.jar ]; then
|
||||||
generate_aot_cache "$AOT_CACHE" -jar /app.jar
|
generate_aot_cache "$AOT_CACHE" -jar /app.jar
|
||||||
|
elif [ -d /app/BOOT-INF ]; then
|
||||||
|
# Spring Boot exploded layer layout (produced by 'java -Djarmode=tools extract --layers').
|
||||||
|
# The actual JAVA_CMD uses JarLauncher with default classpath = CWD (/app).
|
||||||
|
# Mirror that exactly: -cp /app resolves the same classes.
|
||||||
|
generate_aot_cache "$AOT_CACHE" -cp /app org.springframework.boot.loader.launch.JarLauncher
|
||||||
else
|
else
|
||||||
log "AOT: Cannot determine JAR layout; skipping cache generation."
|
log "AOT: Cannot determine JAR layout; skipping cache generation."
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user