From 3f8b51d0e93077f4179150d25ff3c5199c200cf3 Mon Sep 17 00:00:00 2001 From: Ioannis Canellos Date: Wed, 16 Nov 2022 17:33:07 +0200 Subject: [PATCH] refactor: PreventFurtherStepsEx controls exitCode --- .../runtime/ApplicationLifecycleManager.java | 11 ++++++----- .../runtime/PreventFurtherStepsException.java | 15 +++++++++++++++ .../io/quarkus/flyway/runtime/FlywayRecorder.java | 2 +- .../liquibase/runtime/LiquibaseRecorder.java | 2 +- 4 files changed, 23 insertions(+), 7 deletions(-) diff --git a/core/runtime/src/main/java/io/quarkus/runtime/ApplicationLifecycleManager.java b/core/runtime/src/main/java/io/quarkus/runtime/ApplicationLifecycleManager.java index 1d5893b5ec6b45..c72424275bcc1c 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/ApplicationLifecycleManager.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/ApplicationLifecycleManager.java @@ -28,6 +28,7 @@ import io.quarkus.runtime.configuration.ConfigurationException; import io.quarkus.runtime.configuration.ProfileManager; import io.quarkus.runtime.graal.DiagnosticPrinter; +import io.quarkus.runtime.util.ExceptionUtil; import sun.misc.Signal; import sun.misc.SignalHandler; @@ -155,11 +156,8 @@ public static void run(Application application, Class ports = ((QuarkusBindException) rootCause).getPorts(); @@ -205,7 +203,10 @@ public static void run(Application application, Class