Link to home
Start Free TrialLog in
Avatar of jockejocke
jockejockeFlag for Sweden

asked on

How to skip password input when using FTP with ANT build script?

I'm using Eclipse (with FDT Powerflasher) and I'm learning how to use ANT build scripts to upload files to our FTP server.

I've managed to upload files, but the script always pops up a dialog window asking me to input the password. I have already specified the password in the ftp node in the script, so I would like to know how to skip this part to automate the process without having to use this window.

Sample code:

<ftp verbose="yes"
      server="${ftp.server}"
      port="21"
      remotedir="${ftp.remotedir}"
      userid="${ftp.user}"
      password="a_password"
      passive="yes"
      depends="yes"
      binary="yes">
      <fileset dir="bin/">
            <include name="**/*.swf" />
            <include name="**/*.xml" />
            <include name="**/*.html" />
      </fileset>
</ftp>

The script works fine when I input the password in the dialog box, but I want that part automated.
ASKER CERTIFIED SOLUTION
Avatar of jockejocke
jockejocke
Flag of Sweden image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial