DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=37787>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=37787 Summary: Timeout of <java> task ignored on Windows when programm runs subprocess. Product: Ant Version: 1.6.5 Platform: PC OS/Version: other Status: NEW Severity: normal Priority: P2 Component: Core tasks AssignedTo: dev@ant.apache.org ReportedBy: [EMAIL PROTECTED] We have a lot of problems that timeouts in our build environment do not work as we expect. A timeout for the <java> task will kill the Java programm all right - but not, when that Java programm has itself started (as in: fork) another programm. I'll include a build file that demonstrates the problem, plus the output generated by that build. It starts a Java programm, with a timeout of 5 seconds. That Java programm happens to be Ant, which in turn starts yet another Java programm, this time with a timeout of 10 seconds. That final Java program simply does nothing for 30 seconds. After reading the documentation, we'd expect this build to run some 5 seconds, plus a bit of overhead for the setup. Instead, it takes 30 seconds (plus a bit of overhead), to complete. Neither the 5 second timeout nor the 10 second timeout are obeyed. This problem seems to be specific to MS-Windows. We have tried something very similar under Linux, where it works just fine. This is a "lab" example to clearly demonstrate the problem. Our real life situation called an <exec> task instead of the second <java> task. That did not work, either. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]