From 5595e0a9fc2ef613beede95676b85417bbdf379d Mon Sep 17 00:00:00 2001 From: Andy Taylor Date: Tue, 13 Jan 2015 15:07:41 +0000 Subject: [PATCH] fix maven plugin to wait until stop thread has been called by making thread non deamon --- .../main/java/org/apache/activemq/server/ActiveMQBootstrap.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activemq-maven-plugin/src/main/java/org/apache/activemq/server/ActiveMQBootstrap.java b/activemq-maven-plugin/src/main/java/org/apache/activemq/server/ActiveMQBootstrap.java index 49b16c89b4..ae7ecfb8e2 100644 --- a/activemq-maven-plugin/src/main/java/org/apache/activemq/server/ActiveMQBootstrap.java +++ b/activemq-maven-plugin/src/main/java/org/apache/activemq/server/ActiveMQBootstrap.java @@ -135,7 +135,7 @@ public class ActiveMQBootstrap { restartFile.delete(); } - final Timer timer = new Timer("ActiveMQ Server Shutdown Timer", true); + final Timer timer = new Timer("ActiveMQ Server Shutdown Timer", false); timer.scheduleAtFixedRate(new ServerStopTimerTask(stopFile, killFile, restartFile, timer), 500, 500); } }