Browse Source

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
master
Stephane Bailliez 23 years ago
parent
commit
7c1da627d1
1 changed files with 10 additions and 1 deletions
  1. +10
    -1
      src/main/org/apache/tools/ant/taskdefs/ExecuteWatchdog.java

+ 10
- 1
src/main/org/apache/tools/ant/taskdefs/ExecuteWatchdog.java View File

@@ -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.


Loading…
Cancel
Save