You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by sb...@apache.org on 2002/08/13 20:31:33 UTC
cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs ExecuteWatchdog.java
sbailliez 2002/08/13 11:31:33
Modified: src/main/org/apache/tools/ant/taskdefs ExecuteWatchdog.java
Log:
Revive int constructor for 1.4 compatibility
PR: 11207
Reported by: martin.brehovsky@sun.com (Martin Brehovsky)
Revision Changes Path
1.11 +10 -1 jakarta-ant/src/main/org/apache/tools/ant/taskdefs/ExecuteWatchdog.java
Index: ExecuteWatchdog.java
===================================================================
RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/ExecuteWatchdog.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- ExecuteWatchdog.java 15 Apr 2002 15:33:08 -0000 1.10
+++ ExecuteWatchdog.java 13 Aug 2002 18:31:33 -0000 1.11
@@ -72,7 +72,7 @@
* </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
@@ -103,6 +103,15 @@
public ExecuteWatchdog(long timeout) {
watchdog = new Watchdog(timeout);
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);
}
/**
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>