From f5bb572dd89dea0d74e4e8ba17c7bf5b044c2dc4 Mon Sep 17 00:00:00 2001 From: "gabe.maurer" Date: Mon, 7 May 2018 10:10:21 -0500 Subject: Increased coverage authfs Issue-ID: AAF-240 Change-Id: I7a109dd5215566ca0b6d49c5112ffadab6e3f21e Signed-off-by: gabe.maurer --- .../main/java/org/onap/aaf/auth/server/JettyServiceStarter.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'auth/auth-core/src/main') diff --git a/auth/auth-core/src/main/java/org/onap/aaf/auth/server/JettyServiceStarter.java b/auth/auth-core/src/main/java/org/onap/aaf/auth/server/JettyServiceStarter.java index 912f4b93..4b2ca32c 100644 --- a/auth/auth-core/src/main/java/org/onap/aaf/auth/server/JettyServiceStarter.java +++ b/auth/auth-core/src/main/java/org/onap/aaf/auth/server/JettyServiceStarter.java @@ -221,7 +221,12 @@ public class JettyServiceStarter ex access().log(Level.INIT,server.dump()); } catch (Exception e) { access().log(e,"Error starting " + service.app_name); - System.exit(1); + String doExit = access().getProperty("cadi_exitOnFailure", "true"); + if (doExit == "true") { + System.exit(1); + } else { + throw e; + } } try { register(service.registrants(port)); -- cgit 1.2.3-korg