Skip to content

Commit 8472ec3

Browse files
committed
jlink/mkdeps: report on non-0 return code from jdeps
Signed-off-by: Jonathan Dowland <[email protected]>
1 parent b881fff commit 8472ec3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

modules/jlink/artifacts/opt/jboss/container/java/jlink/mkdeps.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ function generate_deps() {
2121
--module-path dependencies \
2222
"$JAVA_APP_JAR" \
2323
"$JAVA_LIB_DIR"/**/*.jar \
24-
> deps.txt
24+
> deps.txt || {
25+
echo "jdeps failed: return code $?"
26+
exit $?
27+
}
2528
else
2629
$JAVA_HOME/bin/jdeps --multi-release $JAVA_VERSION -R -s \
2730
--module-path dependencies \

0 commit comments

Comments
 (0)