ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Velagapudi, Murali" <murali.velagap...@citigroup.com>
Subject RE: reading password for FTP task
Date Fri, 13 Aug 2004 13:26:13 GMT
   Not me if any one wants to know the password then then can do that by simply including 
the echo the password that is what my concern over here.

thanks,
Murali

-----Original Message-----
From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de]
Sent: Friday, August 13, 2004 1:36 AM
To: user@ant.apache.org
Subject: AW: reading password for FTP task


"echo"?
Why using <echo> when you dont want to print something?

Jan

> -----Urspr√ľngliche Nachricht-----
> Von: Velagapudi, Murali [mailto:murali.velagapudi@citigroup.com]
> Gesendet am: Donnerstag, 12. August 2004 17:54
> An: Ant Users List
> Betreff: RE: reading password for FTP task
> 
> Jan,
> 
>     Thank you vey much ,it worked i could get that using your 
> approach, and also
> Is there any way i could supress the echo task, because after 
> getting the cleartext from encrypted password if i do echo 
> its(the pwd) get displayed ,even if i change the execute 
> method in Echo class ,i can stop that for the Ant build in my 
> local system ,if any one else executes this with another Ant 
> then they can know the password.
> 
> thanks,
> Murali
> 
> -----Original Message-----
> From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de]
> Sent: Thursday, August 12, 2004 2:52 AM
> To: user@ant.apache.org
> Subject: AW: reading password for FTP task
> 
> 
> 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 = p; }
>     public void execute() {
>         String pwd = getPassword(); 
>         getProject().setNewProperty(property, pwd);
>     }
>     private String getPassword();
>         String rv;
>         // do your work
>         return rv;
>     }
> }
> 
> <project>
>     <taskdef name="getpassword" classname="GetPassword"/>
>     <getpassword property="ftp.pwd"/>
>     <ftp password="${ftp.pwd}"/>
> </project>
> 
> 
> Jan
> 
> 
> > -----Urspr√ľngliche 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
> > 
> > Hi All,
> > 
> >    I have a key/password stored in properties file(key file) 
> > ,i need to invoke  a java class which decrypts that key and 
> > give me the correct(clear text) password which i can use for 
> > connecting to ftp server, how can i include that in ftp task, 
> > that is to invoke that class and get the return string  back 
> > and should be passed as value for "password" property in ftp task?
> > 
> > thanks in advance,
> > Murali
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

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


Mime
View raw message