Author: rmannibucau
Date: Tue Jul 15 18:30:27 2014
New Revision: 1610796

URL: http://svn.apache.org/r1610796
Log:
don't monitor (kill -3) by default

Modified:
    
tomee/tomee/trunk/container/openejb-core/src/test/java/org/apache/openejb/tool/junit/OpenEJBJUnitDebugListener.java

Modified: 
tomee/tomee/trunk/container/openejb-core/src/test/java/org/apache/openejb/tool/junit/OpenEJBJUnitDebugListener.java
URL: 
http://svn.apache.org/viewvc/tomee/tomee/trunk/container/openejb-core/src/test/java/org/apache/openejb/tool/junit/OpenEJBJUnitDebugListener.java?rev=1610796&r1=1610795&r2=1610796&view=diff
==============================================================================
--- 
tomee/tomee/trunk/container/openejb-core/src/test/java/org/apache/openejb/tool/junit/OpenEJBJUnitDebugListener.java
 (original)
+++ 
tomee/tomee/trunk/container/openejb-core/src/test/java/org/apache/openejb/tool/junit/OpenEJBJUnitDebugListener.java
 Tue Jul 15 18:30:27 2014
@@ -32,6 +32,7 @@ import java.util.concurrent.TimeUnit;
 public class OpenEJBJUnitDebugListener extends RunListener {
     private static final String OS = System.getProperty("os.name", "unknown");
     private static final boolean UNIX = 
!OS.toLowerCase(Locale.ENGLISH).startsWith("windows");
+    private static final boolean MONITOR = 
Boolean.getBoolean("openejb.junit.monitor");
 
     static {
         //System.out.println(">>OpenEJBJUnitDebugListener> will debug - unix? 
" + UNIX + " (" + OS + ")");
@@ -48,9 +49,11 @@ public class OpenEJBJUnitDebugListener e
         if (description != null) {
             System.out.println(">>OpenEJBJUnitDebugListener> will monitor " + 
description.getDisplayName());
         }
-        thread = new MonitoringThread();
-        thread.setName(MonitoringThread.class.getSimpleName() + "-" + 
thread.hashCode());
-        thread.start();
+        if (MONITOR) {
+            thread = new MonitoringThread();
+            thread.setName(MonitoringThread.class.getSimpleName() + "-" + 
thread.hashCode());
+            thread.start();
+        }
     }
 
     @Override


Reply via email to