maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tibordig...@apache.org
Subject [2/4] maven-surefire git commit: [SUREFIRE] shutdownType=DEFAULT in Booter should keep reader open
Date Sat, 10 Oct 2015 17:00:36 GMT
[SUREFIRE] shutdownType=DEFAULT in Booter should keep reader open


Project: http://git-wip-us.apache.org/repos/asf/maven-surefire/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven-surefire/commit/01c32aa3
Tree: http://git-wip-us.apache.org/repos/asf/maven-surefire/tree/01c32aa3
Diff: http://git-wip-us.apache.org/repos/asf/maven-surefire/diff/01c32aa3

Branch: refs/heads/master
Commit: 01c32aa31208fbeec8625a51d7ea2c6668454286
Parents: e817f45
Author: Tibor17 <tibor17@lycos.com>
Authored: Sat Oct 10 10:23:13 2015 +0200
Committer: Tibor17 <tibor17@lycos.com>
Committed: Sat Oct 10 10:23:13 2015 +0200

----------------------------------------------------------------------
 .../main/java/org/apache/maven/surefire/booter/ForkedBooter.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/01c32aa3/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ForkedBooter.java
----------------------------------------------------------------------
diff --git a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ForkedBooter.java
b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ForkedBooter.java
index 0792200..a0421cc 100644
--- a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ForkedBooter.java
+++ b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ForkedBooter.java
@@ -214,15 +214,17 @@ public final class ForkedBooter
 
     private static void exit( int returnCode, Shutdown shutdownType, MasterProcessReader
reader )
     {
-        reader.stop();
         switch ( shutdownType )
         {
             case KILL:
+                reader.stop();
                 Runtime.getRuntime().halt( returnCode );
             case EXIT:
+                reader.stop();
                 launchLastDitchDaemonShutdownThread( returnCode );
                 System.exit( returnCode );
             case DEFAULT:
+                // refers to shutdown=testset, but not used now, keeping reader open
             default:
                 break;
         }


Mime
View raw message