?
Solved

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

Posted on 2010-01-05
1
Medium Priority
?
656 Views
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"
      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.
0
Comment
Question by:jockejocke
1 Comment
 
LVL 2

Accepted Solution

by:
jockejocke earned 0 total points
ID: 26197883
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">
            </input>
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
A few months ago I attended the Rocky Mountain IPv6 Summit which was a two-day educational event; it was the 3rd annual conference held here in Denver, Colorado that was held at the Hyatt Regency Denver at the Colorado Convention Center. It was an e…
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), 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…
Suggested Courses
Course of the Month15 days, 18 hours left to enroll

850 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