ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant/taskdefs/optional/net TelnetTask.java
Date Thu, 23 Oct 2003 09:06:43 GMT
bodewig     2003/10/23 02:06:43

  Modified:    src/main/org/apache/tools/ant/taskdefs/optional/net
                        TelnetTask.java
  Log:
  Better support for people debugging timed out reads in <telnet>, Submitted by Larry
Shatzer
  
  Revision  Changes    Path
  1.21      +3 -1      ant/src/main/org/apache/tools/ant/taskdefs/optional/net/TelnetTask.java
  
  Index: TelnetTask.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/optional/net/TelnetTask.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- TelnetTask.java	13 May 2003 14:37:04 -0000	1.20
  +++ TelnetTask.java	23 Oct 2003 09:06:43 -0000	1.21
  @@ -342,6 +342,8 @@
                               Thread.sleep(250);
                           }
                           if (is.available() == 0) {
  +                            log("Read before running into timeout: " 
  +                                + sb.toString(), Project.MSG_DEBUG);
                               throw new BuildException(
                                   "Response timed-out waiting for \"" + s + '\"',
                                   getLocation());
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message