|
|
|
@@ -72,7 +72,7 @@ import org.apache.tools.ant.util.Watchdog; |
|
|
|
* </pre> |
|
|
|
|
|
|
|
* @author thomas.haas@softwired-inc.com |
|
|
|
* @author <a href="mailto:sbailliez@imediation.com">Stephane Bailliez</a> |
|
|
|
* @author <a href="mailto:sbailliez_at_apache.org">Stephane Bailliez</a> |
|
|
|
* @see Execute |
|
|
|
* @see org.apache.tools.ant.util.Watchdog |
|
|
|
* @since Ant 1.2 |
|
|
|
@@ -105,6 +105,15 @@ public class ExecuteWatchdog implements TimeoutObserver { |
|
|
|
watchdog.addTimeoutObserver(this); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @see #ExecuteWatchdog(long) |
|
|
|
* @deprecated Use constructor with a long type instead. |
|
|
|
* (1.4.x compatibility) |
|
|
|
*/ |
|
|
|
public ExecuteWatchdog(int timeout) { |
|
|
|
this((long)timeout); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Watches the given process and terminates it, if it runs for too long. |
|
|
|
* All information from the previous run are reset. |
|
|
|
|