Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 34012 invoked by uid 500); 11 Sep 2001 15:57:02 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 34003 invoked from network); 11 Sep 2001 15:57:02 -0000 Message-ID: <20010911155704.93691.qmail@web11003.mail.yahoo.com> Date: Tue, 11 Sep 2001 08:57:04 -0700 (PDT) From: James Bullington Subject: Re: Telnet Task - how to work with variables in write commands To: ant-user@jakarta.apache.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I am able to do the following in a write command: login: I am using ant 1.3. Are you sure that optional.jar and NetComponents.jar are in your CLASSPATH? i.e. CLASSPATH=c:\ant\lib\optional.jar;c:\ant\lib\NetComponents.jar;%CLASSPATH% I have not tried to name the server as a variable, but the username and password are passed in as variables (i.e. -Dusername=jim) Hope this helps, or at least provides a clue. --Jim --- Anton_Grimm@mn.man.de wrote: > I tried to use properties in telnet write - tags, > but the properties don't get replaced before > execution. > > f.e. > server="${deployment.server}" > initialCR="YES"> > ogin: > wasadm > was#9436 > ome/wasadm > ... > > ome/wasadm > cd > projects/${ant.projekt.name} > > exit > logout > > > I also recognized that working with tags is > not > possible in telnet tasks. > > f.e. > export > ANT_PROJEKT=${ant.projekt.name} > cd projects > cd $ANT_PROJEKT > > 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 > **************************************************** > ===== Support anti-Spam legislation. Join the fight http://www.cauce.org/ __________________________________________________ Do You Yahoo!? Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger http://im.yahoo.com