You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/07 09:14:58 UTC

[sling-maven-launchpad-plugin] 15/49: SLING-1442 - shouldn't be killing the JVM on a "stop" command.

This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag maven-launchpad-plugin-2.0.10
in repository https://gitbox.apache.org/repos/asf/sling-maven-launchpad-plugin.git

commit 9768cfb171a8759519d98557827e8319c6eecb73
Author: Justin Edelson <ju...@apache.org>
AuthorDate: Fri Apr 16 14:53:17 2010 +0000

    SLING-1442 - shouldn't be killing the JVM on a "stop" command.
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/maven/maven-launchpad-plugin@934948 13f79535-47bb-0310-9956-ffa450edef68
---
 .../java/org/apache/sling/maven/projectsupport/ControlListener.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/sling/maven/projectsupport/ControlListener.java b/src/main/java/org/apache/sling/maven/projectsupport/ControlListener.java
index dd60568..65adf23 100644
--- a/src/main/java/org/apache/sling/maven/projectsupport/ControlListener.java
+++ b/src/main/java/org/apache/sling/maven/projectsupport/ControlListener.java
@@ -124,8 +124,8 @@ class ControlListener implements Runnable {
                         }
                         writeLine(s, RESPONSE_OK);
 
-                        log.info("Sling shut down, exiting Java VM");
-                        System.exit(0);
+                        log.info("Sling shut down, stopping Sling.");
+                        mojo.stopSling();
 
                     } else if (COMMAND_STATUS.equals(command)) {
                         writeLine(s, RESPONSE_OK);

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.