ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Property not substituting value in telnet task
Date Tue, 12 Mar 2002 13:31:56 GMT
On Tue, 12 Mar 2002, steven hale <steven.hale@sbab.se> wrote:

> 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>

Nothing's wrong with your syntax (except for the typo), <telnet>
simply doesn't expand properties in nested text, but it should do so
for attributes.

         <write string="cd ${myDir}" />

should work.

Stefan

--
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