diff --git a/src/main/org/apache/tools/ant/taskdefs/ExecuteWatchdog.java b/src/main/org/apache/tools/ant/taskdefs/ExecuteWatchdog.java index f6c81db61..9bb78dec8 100644 --- a/src/main/org/apache/tools/ant/taskdefs/ExecuteWatchdog.java +++ b/src/main/org/apache/tools/ant/taskdefs/ExecuteWatchdog.java @@ -72,7 +72,7 @@ import org.apache.tools.ant.util.Watchdog; * * @author thomas.haas@softwired-inc.com - * @author Stephane Bailliez + * @author Stephane Bailliez * @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.