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

Posted on 2010-01-05
Last Modified: 2013-11-29
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.
Question by:jockejocke
    1 Comment
    LVL 2

    Accepted Solution

    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">

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
    Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
    The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
    After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now