Browse Source

report a timeout to the log

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270056 13f79535-47bb-0310-9956-ffa450edef68
master
Steve Loughran 23 years ago
parent
commit
d8b96a6359
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      src/main/org/apache/tools/ant/taskdefs/ExecTask.java

+ 4
- 0
src/main/org/apache/tools/ant/taskdefs/ExecTask.java View File

@@ -287,6 +287,10 @@ public class ExecTask extends Task {
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) {


Loading…
Cancel
Save