Hello I following a lead in this mailing list and able to invoke the
telnet ant task within my maven.xml.  However, once I login to the
remote host, all telnet task's interactions(write/read) are ignored.  
Any clues?

Here is the lead:
============

http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]&msgNo=15172

Here is my dependencies declaration in project.xml
=====================================

  <dependencies>
    <dependency>
      <groupId>NetComponents</groupId>
      <artifactId>NetComponents</artifactId>
      <version>1.3.8</version>
      <properties>
        <classloader>root</classloader>
      </properties>
    </dependency>
  </dependencies>


Here is my maven.xml content:
=======================

  <ant:taskdef name="telnet" 
classname="org.apache.tools.ant.taskdefs.optional.net.TelnetTask"/>


  <goal name="unix.test" >
    <echo>Executing unix.test goal... </echo>
    <telnet server="${host}" userid="${unix.user}"
password="${unix.password}" timeout="telnet.read.timeout"
initialCR="yes" >

      <!-- change to ${unix.shell} with a new prompt -->
      <write>${unix.shell}</write>
      <read>$</read>
      <write echo="false">export PS1=${unix.prompt.export}</write>
      <read>${unix.prompt}</read>

      <write echo ="true">echo Test is OK</write>
      <read>${unix.prompt}</read>
      <write>ls</write>
      <read>${unix.prompt}</read>
   </telnet>
  </goal>
  

Here is the results:
=============

Z:\QA\6.5\automation\remoteinstaller>maven unix.test -Dhost=qasuse1
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0

build:start:

unix.test:
    [echo] Executing unix.test goal...
    [telnet]

    [telnet] Welcome to SuSE SLES 8 (powered by UnitedLinux 1.0) (i586)\nKernel
2.4.19-64GB-SMP (1).




qasuse1 login:
    [telnet] dtran
    [telnet]  Password:
    [telnet]
    [telnet]
    [telnet]
    [telnet]
    [telnet]
    [telnet]
    [telnet]
BUILD SUCCESSFUL
Total time: 2 seconds
Finished at: Thu Aug 12 16:02:17 PDT 2004

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to