From 04632b415168861153d1507fff8614dc2aef491b Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Thu, 30 Nov 2000 09:42:52 +0000 Subject: [PATCH] Fixed some typos in the telnet task description. Submitted by: Chris Todd Reinstated alphabetical ordering of optional tasks, this makes the change look bigger than it is. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268275 13f79535-47bb-0310-9956-ffa450edef68 --- docs/index.html | 174 ++++++++++++++++++++++++------------------------ 1 file changed, 87 insertions(+), 87 deletions(-) diff --git a/docs/index.html b/docs/index.html index 4c843e589..7ae640665 100644 --- a/docs/index.html +++ b/docs/index.html @@ -27,7 +27,7 @@
  • Dave Walend (dwalend@cs.tufts.edu)
  • -

    Version 1.3 - 2000/11/29

    +

    Version 1.3 - 2000/11/30


    Table of Contents

    @@ -4573,8 +4573,8 @@ it had been located at htdocs/manual/ChangeLog.txt.

  • PropertyFile
  • RenameExtensions
  • Script
  • -
  • VssGet
  • Telnet
  • +
  • VssGet

  • Cab

    @@ -5354,6 +5354,91 @@ main: BUILD SUCCESSFUL
    +

    Telnet

    +

    Description

    +Task to automate a remote telnet session. The task uses nested <read> to indicate strings to wait for, and <write> tags to specify text to send. + +

    If you do specify a userid and password, the system will assume a common unix prompt to wait on. This behavior can be easily over-ridden.

    +

    Parameters

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    AttributeValuesRequired
    useridthe login id to use on the telnet server.No
    passwordthe login password to use on the telnet server.No
    serverthe address of the remote telnet server.Yes
    portthe port number of the remote telnet server. Defaults to port 21.No
    initialCRsend a cr after connecting ("yes"). Defaults to "no".No
    timeoutset a default timeout to wait for a response. Specified in seconds. Default is no timeout.No
    +

    Examples

    +A simple example of connecting to a server and running a command. This assumes a prompt of "ogin:" for the userid, and a prompt of "assword:" for the password. +
    +<telnet userid="bob" password="badpass" server="localhost">
    +   <read>/home/bob</read>
    +   <write>ls</write>
    +   <read string="/home/bob"/>
    +</telnet>
    +
    + +This task can be rewritten as: +
    +<telnet server="localhost">
    +   <read>ogin:</read>
    +   <write>bob</write>
    +   <read>assword:</read>
    +   <write>badpass</write>
    +   <read>/home/bob</read>
    +   <write>ls</write>
    +   <read>/home/bob</read>
    +</telnet>
    +
    + +A timeout can be specified at the <telnet> level or at the <read> level. This will connect, issue a sleep command that is suppressed from displaying and wait 10 seconds before quitting. +
    +<telnet userid="bob" password="badpass" server="localhost" timeout="20">
    +   <read>/home/bob</read>
    +   <write echo="false">sleep 15</write>
    +   <read timeout="10">/home/bob</read>
    +</telnet>
    +
    + +The task can be used with other ports as well: +
    +<telnet userid="bob" password="badpass" server="localhost" defaultTimeout="20">
    +   <read/>
    +   <write>GET / http/0.9</write>
    +   <write/>
    +   <read timeout="10">&lt;/HTML&gt;</read>
    +</telnet>
    +
    +

    VssGet

    Description

    Task to perform GET commands to Microsoft Visual Source Safe. @@ -5431,91 +5516,6 @@ which are labeled Release1 and write them to the local directory C:\mysrc\myproject. The local files will be writable.


    -

    Telnet

    -

    Description

    -Task to automate a remote telnet session. The task uses nested <read> to indicate strings to wait for, and <write> tags to specify text to send. - -

    If you do specify a userid and password, the system will assume a common unix prompt to wait on. This behavior can be easily over-ridden.

    -

    Parameters

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    AttributeValuesRequired
    useridthe login id to use on the telnet server.No
    passwordthe login password to use on the telnet server.No
    serverthe address of the remote ftp server.Yes
    portthe port number of the remote ftp server. Defaults to port 21.No
    initialCRsend a cr after connecting ("yes"). Defaults to "no".No
    timeoutset a default timeout to wait for a response. Specified in seconds. Default is no timeout.No
    -

    Examples

    -A simple example of connecting to a server and running a command. This assumes a prompt of "ogin:" for the userid, and a prompt of "ssword:" for the password. -
    -<telnet userid="bob" password="badpass" server="localhost">
    -   <read>/home/bob</read>
    -   <write>ls</read>
    -   <read string="/home/bob"/>
    -</telnet>
    -
    - -This task can be rewritten as: -
    -<telnet server="localhost">
    -   <read>ogin:</read>
    -   <write>bob</read>
    -   <read>ssword:</read>
    -   <write>badpass</read>
    -   <read>/home/bob</read>
    -   <write>ls</read>
    -   <read>/home/bob</read>
    -</telnet>
    -
    - -A timeout can be specified at the <telnet> level or at the <read> level. This will connect, issue a sleep command that is suppressed from displaying and wait 10 seconds before quitting. -
    -<telnet userid="bob" password="badpass" server="localhost" timeout="20">
    -   <read>/home/bob</read>
    -   <write echo="false">sleep 15</read>
    -   <read timeout="10">/home/bob</read>
    -</telnet>
    -
    - -The task can be used with other ports as well: -
    -<telnet userid="bob" password="badpass" server="localhost" defaultTimeout="20">
    -   <read/>
    -   <write>GET / http/0.9</read>
    -   <write/>
    -   <read timeout="10">&lt;/HTML&gt;</read>
    -</telnet>
    -
    -

    Build Events

    Ant is capable of generating build events as it performs the tasks necessary to build a project. Listeners can be attached to ant to receive these events. This capability could be used, for example,