ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From steven.h...@sbab.se
Subject Ang: Re: Property not substituting value in telnet task
Date Tue, 12 Mar 2002 14:50:49 GMT

Thanks for all the help - works like a dream now.

Steven



                                                                                         
                         
                    Stefan                                                               
                         
                    Bodewig              Till:   ant-user@jakarta.apache.org             
                         
                    <bodewig@apac        Kopia:                                       
                            
                    he.org>              Ärende:      Re: Property not substituting value
in telnet task           
                                                                                         
                         
                    2002-03-12                                                           
                         
                    14:31                                                                
                         
                    Sänd svar                                                           
                          
                    till "Ant                                                            
                         
                    Users List"                                                          
                         
                                                                                         
                         
                                                                                         
                         




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>






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