ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nagarajan Murugesan <>
Subject RE: Telnet task in Ant
Date Wed, 24 Sep 2003 13:27:37 GMT
Hi Sourabh,

You can vermuch do this using ant.
I created a directory using mkdir in the name of two
ant properties and I chnaged the directory. It is works well

here is my script:

<telnet userid="${rmuser}" password="${rmpass}" server="${server}"
<write>mkdir ${cfgbuild}.${cfgrel}</write>
write>cd ${rmdir}/${cfgbuild}.${cfgrel}</write>
<write>pwd ${rmdir}/${cfgbuild}.${cfgrel}</write>

Try that!!!


-----Original Message-----
From: Das, Sourabh (GXS) []
Sent: Wednesday, September 24, 2003 6:16 PM
To: Ant Users List
Subject: Telnet task in Ant

When using the telnet task, is there anyway by which I can use <write/> to
change to a server directory that was dynamically generated earlier through
ftp task (mkdir action) using some property values in build.xml?
Suppose I have 2 properties - rel_no and ver_no and I have created a
directory as ${rel_no}.${ver_no} through ftp task
I cant mention them as <write>cd Test/${rel_no).${ver_no}</write>
How to change to that directory in this case through telnet task?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message