• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 662
  • Last Modified:

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"
      <fileset dir="bin/">
            <include name="**/*.swf" />
            <include name="**/*.xml" />
            <include name="**/*.html" />

The script works fine when I input the password in the dialog box, but I want that part automated.
1 Solution
jockejockeAuthor Commented:
Never mind, should've showed the "full" sample code, had this at start:

<input message="FTP Password for '${ftp.user}' on ${ftp.server} in ${ftp.remotedir} " addproperty="ftp.password">
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now