ARTEMIS-5201 when non embedded use exit(1) on exception for artemis cli main like artemis boot
This commit is contained in:
parent
33d2eec7f0
commit
ea2b80d79e
|
@ -111,7 +111,10 @@ public class Artemis implements Runnable {
|
||||||
|
|
||||||
verifyManagementDTO(fileBrokerETC);
|
verifyManagementDTO(fileBrokerETC);
|
||||||
|
|
||||||
execute(true, true, true, fileHome, fileInstance, fileBrokerETC, args);
|
Object result = execute(true, true, true, fileHome, fileInstance, fileBrokerETC, args);
|
||||||
|
if (!Run.getEmbedded() && result instanceof Exception) {
|
||||||
|
System.exit(1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -70,6 +70,10 @@ public class Run extends LockAbstract {
|
||||||
Run.embedded = true;
|
Run.embedded = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static boolean getEmbedded() {
|
||||||
|
return Run.embedded;
|
||||||
|
}
|
||||||
|
|
||||||
private Broker server;
|
private Broker server;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue