summaryrefslogtreecommitdiffstats
path: root/auth/auth-core/src/main
diff options
context:
space:
mode:
authorgabe.maurer <gabe.maurer@att.com>2018-05-07 10:10:21 -0500
committergabe.maurer <gabe.maurer@att.com>2018-05-09 10:00:28 -0500
commitf5bb572dd89dea0d74e4e8ba17c7bf5b044c2dc4 (patch)
tree55926a844a415feee29278fdf2cba69c97db7ee1 /auth/auth-core/src/main
parenta30fc7afb8c889dedc3be4fa55de5bdbf35f6086 (diff)
Increased coverage authfs
Issue-ID: AAF-240 Change-Id: I7a109dd5215566ca0b6d49c5112ffadab6e3f21e Signed-off-by: gabe.maurer <gabe.maurer@att.com>
Diffstat (limited to 'auth/auth-core/src/main')
-rw-r--r--auth/auth-core/src/main/java/org/onap/aaf/auth/server/JettyServiceStarter.java7
1 files changed, 6 insertions, 1 deletions
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<ENV extends RosettaEnv, TRANS extends Trans> 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));