ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivan Ivanov <rambiusparkisan...@yahoo.com>
Subject RE: Urgent help with FTP task.....please help
Date Thu, 15 Dec 2005 16:29:36 GMT
Hello,

You can store the password in a properties file and
keep the properties  file out of version control
system with read permissions only for the OS user that
is running the script.

There is a way for propmting the user for the password
and masking  it while it is typed. I wrote a document
describing how it is done  and you can find it [1]. It
is called "Extending Ant Input Abilities". However,
prompting the user with <input> breaks the automated
running of the scripts so I do not encourage you to
use it.

Regards
Ivan

[1]http://ant.apache.org/resources.html

--- Srikrishna_Parthasarathy@timeinc.com wrote:

> There is an issue of password being in clear text
> while using the ftp
> task. Is there a way around it .
> 
> project name="ftpuse" default="ftp">
> > > > 
> > > > <target name="ftp">
> > > > 
> > > > <ftp server="10.187.218.183"
> > > > 
> > > >          remotedir="c:\uploads"
> > > > 
> > > >         depends="yes"
> > > > 
> > > >        userid="sparthasarthy12"
> > > > 
> > > >        password="srinivasa27">
> > > > 
> > > >     <fileset dir="c:\sshkeys"/>
> > > > 
> > > >   </ftp>
> > > > 
> > > >    <echo message="ftp successful"/>
> > > > 
> > > > </target>
> > > > 
> > > > </project>
> 
> -----Original Message-----
> From: Ivan Ivanov
> [mailto:rambiusparkisanius@yahoo.com] 
> Sent: Wednesday, December 14, 2005 7:20 PM
> To: Ant Users List
> Subject: RE: Urgent help with FTP task.....please
> help
> 
> Hello
> 
> --- Srikrishna_Parthasarathy@timeinc.com wrote:
> 
> > Thanks for your email
> > 
> > I am using ant 1.6.5.
> I am not sure you are using ant 1.6.5. From your
> first
> message I see:
> 
> > C:\antscripts>ant -verbose -f generalftp.xml
> > 
> > Apache Ant version 1.6.2 compiled on August 5 2004
>                      ^^^^^^
> Here it says something else.
> 
> > For ftp what jar file you have to download and
> > put in ant lib directory?
> Everything regarding ftp task is described in the
> fine
> manual. See [1].
> 
> Regards
> Ivan
> 
>
[1]http://ant.apache.org/manual/install.html#librarydependencies
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> http://mail.yahoo.com 
> 
>
---------------------------------------------------------------------
> 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
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Mime
View raw message