From 7c1da627d198ddf1dacbc0a4d06ee2e4720ae089 Mon Sep 17 00:00:00 2001 From: Stephane Bailliez Date: Tue, 13 Aug 2002 18:31:33 +0000 Subject: [PATCH] Revive int constructor for 1.4 compatibility PR: 11207 Reported by: martin.brehovsky@sun.com (Martin Brehovsky) git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273218 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/tools/ant/taskdefs/ExecuteWatchdog.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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.