Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 34426 invoked from network); 12 Aug 2004 06:52:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 12 Aug 2004 06:52:28 -0000 Received: (qmail 41695 invoked by uid 500); 12 Aug 2004 06:52:13 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 41649 invoked by uid 500); 12 Aug 2004 06:52:13 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 41633 invoked by uid 99); 12 Aug 2004 06:52:13 -0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=HTML_50_60,HTML_MESSAGE,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [193.109.238.66] (HELO dnsinet.rzf-nrw.de) (193.109.238.66) by apache.org (qpsmtpd/0.27.1) with ESMTP; Wed, 11 Aug 2004 23:52:12 -0700 Received: from z011104.bk.fin.local (z011104.bk.fin.local [193.109.238.140]) by dnsinet.rzf-nrw.de (8.12.10/8.12.10) with ESMTP id i7C6q8vR031419 for ; Thu, 12 Aug 2004 08:52:08 +0200 Received: by z011104.bk.fin.local with Internet Mail Service (5.5.2657.72) id ; Thu, 12 Aug 2004 08:52:08 +0200 Message-ID: <879A5AD5DD0ED511891F0003473A9B560E23F492@Z011004> From: Jan.Materne@rzf.fin-nrw.de To: user@ant.apache.org Subject: AW: reading password for FTP task Date: Thu, 12 Aug 2004 08:52:07 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C48038.E25B3A90" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C48038.E25B3A90 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Simplest thing would writing a task which stores the password as property. public class GetPassword extends Task { private String property; public void setProperty(String p) { property =3D p; } public void execute() { String pwd =3D getPassword();=20 getProject().setNewProperty(property, pwd); } private String getPassword(); String rv; // do your work return rv; } } Jan > -----Urspr=FCngliche Nachricht----- > Von: Velagapudi, Murali [mailto:murali.velagapudi@citigroup.com] > Gesendet am: Mittwoch, 11. August 2004 23:01 > An: Ant Users List > Betreff: reading password for FTP task >=20 > Hi All, >=20 > I have a key/password stored in properties file(key file)=20 > ,i need to invoke a java class which decrypts that key and=20 > give me the correct(clear text) password which i can use for=20 > connecting to ftp server, how can i include that in ftp task,=20 > that is to invoke that class and get the return string back=20 > and should be passed as value for "password" property in ftp task? >=20 > thanks in advance, > Murali >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org >=20 ------_=_NextPart_001_01C48038.E25B3A90--