ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/net TelnetTask.java
Date Sat, 25 May 2002 05:46:10 GMT
stevel      02/05/24 22:46:10

  Modified:    src/main/org/apache/tools/ant/taskdefs/optional/net Tag:
                        ANT_15_BRANCH TelnetTask.java
  Log:
  when we time out, list what we were waiting for. Catches 'steve cant set properties right'
bugs.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.12.2.1  +4 -2      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/net/TelnetTask.java
  
  Index: TelnetTask.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/net/TelnetTask.java,v
  retrieving revision 1.12
  retrieving revision 1.12.2.1
  diff -u -r1.12 -r1.12.2.1
  --- TelnetTask.java	15 Apr 2002 13:36:21 -0000	1.12
  +++ TelnetTask.java	25 May 2002 05:46:10 -0000	1.12.2.1
  @@ -70,7 +70,7 @@
    * Class to provide automated telnet protocol support for the Ant build tool
    *
    * @author <a href="mailto:ScottCarlson@email.com">ScottCarlson@email.com</a>
  - * @version $Revision: 1.12 $
  + * @version $Revision: 1.12.2.1 $
    */
   
   public class TelnetTask extends Task {
  @@ -327,7 +327,9 @@
                               Thread.sleep(250);
                           }
                           if (is.available() == 0) {
  -                            throw new BuildException("Response Timed-Out", getLocation());
  +                            throw new BuildException(
  +                                "Response timed-out waiting for \""+s+'\"', 
  +                                getLocation());
                           }
                           sb.append((char) is.read());
                       }
  
  
  

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


Mime
View raw message