ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ROBERT.WO...@jpmorgan.com
Subject Re: Property not substituting value in telnet task
Date Tue, 12 Mar 2002 13:19:35 GMT

You need use the string attribute in the write task, like this:

<property name="myDir"  value="aaa123" />
<telnet userid="user1" password="myPassword" server="ftpname">
          <read>&gt;</read>
          <write strimg="cd ${myDir}" />
</telnet>

Regards,

Rob Worth





steven.hale@sbab.se on 12/03/2002 12:59:37

Please respond to "Ant Users List" <ant-user@jakarta.apache.org>



To:   ant-user@jakarta.apache.org
cc:
Subject:  Property not substituting value in telnet task


I'm trying to use a property in a telnet task but it doesn't seem to work.

What's wrong with this?:

<property name="myDir"  value="aaa123">
<telnet userid="user1" password="myPassword" server="ftpname">
          <read>&gt;</read>
          <write>cd ${myDir}</write>
</telnet>

Returns
myDir: Undefined variable


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






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


Mime
View raw message