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 --- [EMAIL PROTECTED] 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:[EMAIL PROTECTED] > Sent: Wednesday, December 14, 2005 7:20 PM > To: Ant Users List > Subject: RE: Urgent help with FTP task.....please > help > > Hello > > --- [EMAIL PROTECTED] 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: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]