ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs ExecTask.java
Date Fri, 30 Nov 2001 20:43:27 GMT
stevel      01/11/30 12:43:27

  Modified:    src/main/org/apache/tools/ant/taskdefs ExecTask.java
  Log:
  report a timeout to the log
  
  Revision  Changes    Path
  1.22      +4 -0      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/ExecTask.java
  
  Index: ExecTask.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/ExecTask.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- ExecTask.java	2001/11/30 17:35:06	1.21
  +++ ExecTask.java	2001/11/30 20:43:27	1.22
  @@ -287,6 +287,10 @@
           int err = -1; // assume the worst
   
           err = exe.execute();
  +        //test for and handle a forced process death
  +        if(exe.killedProcess()) {
  +            log("Timeout: killed the sub-process",Project.MSG_WARN); 
  +        }
           maybeSetResultPropertyValue(err);
           if (err != 0) {
               if (failOnError) {
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message