ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anton_Gr...@mn.man.de
Subject Telnet Task - how to work with variables in write commands
Date Tue, 11 Sep 2001 11:08:43 GMT
I tried to use properties in telnet write - tags,
but the properties don't get replaced before execution.

f.e.
     <telnet
          server="${deployment.server}"
          initialCR="YES">
       <read>ogin:</read>
       <write>wasadm</write>
       <write>was#9436</write>
       <read>ome/wasadm</read>
       ...

       <read>ome/wasadm</read>
       <write>cd projects/${ant.projekt.name}</write>

       <write>exit</write>
       <read>logout</read>
     </telnet>

I also recognized that working with <env> tags is not
possible in telnet tasks.

f.e.
       <env>export ANT_PROJEKT=${ant.projekt.name}</env>
       <write>cd projects</write>
       <write>cd $ANT_PROJEKT</write>

Is there any possibility to work with variables in telnet tags?

Any help is very much appreciated.

thanks in advance

A. Grimm

****************************************************
MAN Nutzfahrzeuge AG
Anton Grimm
Abt. IDP (SoftwareProduktionsumgebungen)
Dachauerstr.667
80995 M√ľnchen

Tel.:      089/1580-1054
Fax:      089/1580-911054
E-Mail: Anton_Grimm@mn.man.de
****************************************************


Mime
View raw message