commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sgoes...@apache.org
Subject svn commit: r600907 - in /commons/sandbox/exec/trunk/src: main/java/org/apache/commons/exec/ExecuteWatchdog.java test/java/org/apache/commons/exec/DefaultExecutorTest.java
Date Tue, 04 Dec 2007 12:14:20 GMT
Author: sgoeschl
Date: Tue Dec  4 04:14:19 2007
New Revision: 600907

URL: http://svn.apache.org/viewvc?rev=600907&view=rev
Log:
SANDBOX-193 Renamed ExecuteWatchdog.destroy() to ExecuteWatchdog.destroyProcess() to state
the intention clearly.

Modified:
    commons/sandbox/exec/trunk/src/main/java/org/apache/commons/exec/ExecuteWatchdog.java
    commons/sandbox/exec/trunk/src/test/java/org/apache/commons/exec/DefaultExecutorTest.java

Modified: commons/sandbox/exec/trunk/src/main/java/org/apache/commons/exec/ExecuteWatchdog.java
URL: http://svn.apache.org/viewvc/commons/sandbox/exec/trunk/src/main/java/org/apache/commons/exec/ExecuteWatchdog.java?rev=600907&r1=600906&r2=600907&view=diff
==============================================================================
--- commons/sandbox/exec/trunk/src/main/java/org/apache/commons/exec/ExecuteWatchdog.java
(original)
+++ commons/sandbox/exec/trunk/src/main/java/org/apache/commons/exec/ExecuteWatchdog.java
Tue Dec  4 04:14:19 2007
@@ -103,7 +103,7 @@
     /**
      * Destroys the running process manually.
      */
-    public synchronized void destroy() {
+    public synchronized void destroyProcess() {
         this.timeoutOccured(new Watchdog(1));
         this.stop();
     }

Modified: commons/sandbox/exec/trunk/src/test/java/org/apache/commons/exec/DefaultExecutorTest.java
URL: http://svn.apache.org/viewvc/commons/sandbox/exec/trunk/src/test/java/org/apache/commons/exec/DefaultExecutorTest.java?rev=600907&r1=600906&r2=600907&view=diff
==============================================================================
--- commons/sandbox/exec/trunk/src/test/java/org/apache/commons/exec/DefaultExecutorTest.java
(original)
+++ commons/sandbox/exec/trunk/src/test/java/org/apache/commons/exec/DefaultExecutorTest.java
Tue Dec  4 04:14:19 2007
@@ -151,7 +151,7 @@
         // wait for script to run
         Thread.sleep(2000);
         // teminate it
-        watchdog.destroy();
+        watchdog.destroyProcess();
         assertTrue(watchdog.killedProcess());
     }
 
@@ -168,7 +168,7 @@
         // wait for script to be terminated by the watchdog
         Thread.sleep(6000);
         // try to teminate the already terminated process
-        watchdog.destroy();
+        watchdog.destroyProcess();
         assertTrue(watchdog.killedProcess());
     }
 



Mime
View raw message