bodewig 2003/04/01 05:05:25
Modified: docs/manual/OptionalTasks sshexec.html src/main/org/apache/tools/ant/taskdefs/optional/ssh SSHExec.java Log: Don't say milliseconds when you mean seconds Revision Changes Path 1.4 +1 -1 ant/docs/manual/OptionalTasks/sshexec.html Index: sshexec.html =================================================================== RCS file: /home/cvs/ant/docs/manual/OptionalTasks/sshexec.html,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- sshexec.html 1 Apr 2003 13:01:09 -0000 1.3 +++ sshexec.html 1 Apr 2003 13:05:25 -0000 1.4 @@ -99,7 +99,7 @@ <tr> <td valign="top">timeout</td> <td valign="top">Stop the command if it doesn't finish within the - specified time (given in seconds). Defaults to 0 which means "wait forever".</td> + specified time (given in milliseconds). Defaults to 0 which means "wait forever".</td> <td align="center" valign="top">No</td> </tr> </table> 1.3 +6 -6 ant/src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHExec.java Index: SSHExec.java =================================================================== RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHExec.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- SSHExec.java 1 Apr 2003 13:01:09 -0000 1.2 +++ SSHExec.java 1 Apr 2003 13:05:25 -0000 1.3 @@ -80,7 +80,7 @@ public class SSHExec extends SSHBase { private String command = null; // the command to execute via ssh - private int maxwait = 0; // units are milliseconds, default is 0=infinite + private long maxwait = 0; // units are milliseconds, default is 0=infinite private Thread thread = null; // for waiting for the command to finish private String output_property = null; // like <exec> @@ -110,14 +110,14 @@ * * @param timeout The new timeout value in seconds */ - public void setTimeout(int timeout) { - maxwait = timeout * 1000; + public void setTimeout(long timeout) { + maxwait = timeout; } /** * If used, stores the output of the command to the given file. * - * @param maxwait The new maxwait value + * @param output The file to write to. */ public void setOutput(File output) { output_file = output;