When I use FTP, I also specify directories etc, as
well as a port address.
This is an example:
<ftp
server="servername" port="21"
remotedir="/dir/dir/dir"
userid="${username}"
password="${password}"
binary="yes">
<fileset dir="dir/dir/dir"/>
</ftp>
Please note that I use binary mode because I am
transfering gifs, jpgs, etc.
Please also note that the target directory must exist.
I use a telnet session to create the directory in my
scripts.
--Jim
--- "AL, Lakshmanan (CORP, GEITC)"
<[EMAIL PROTECTED]> wrote:
>
> hi all,
>
> when i run ant with an xml file with a ftp tag, the
> output i am
> getting it is as follows.
>
> ***********************xml
> file******************************************
> <target name="ftp" >
> <ftp
> server="3.212.228.71"
> userid="lakshmal"
> password="Laxl">
> </ftp>
> </target>
>
>
"*********************output********************************
> ftp:
> [ftp] Opening FTP connection to 3.212.228.71
> [ftp] connected
> [ftp] logging in to FTP server
>
> BUILD FAILED
>
> C:\ant\bin\ftp.xml:7: Could not login to FTP server
> at
>
org.apache.tools.ant.taskdefs.optional.net.FTP.execute(FTP.java:748)
> at
> org.apache.tools.ant.Task.perform(Task.java:217)
> at
> org.apache.tools.ant.Target.execute(Target.java:164)
> at
>
org.apache.tools.ant.Target.performTasks(Target.java:182)
> at
>
org.apache.tools.ant.Project.executeTarget(Project.java:601)
> at
>
org.apache.tools.ant.Project.executeTargets(Project.java:560)
> at
> org.apache.tools.ant.Main.runBuild(Main.java:454)
> at
> org.apache.tools.ant.Main.start(Main.java:153)
> at
> org.apache.tools.ant.Main.main(Main.java:176)
>
> Total time: 0 seconds
>
**************************************************************"
>
> Any help will be appreciated.
>
> regards,
> lakshman
>
>
__________________________________________________________________
> Success is the Intersection of Preparedness/Timing
> with Opportunity
> And
> Leadership is the Art of Maximising Potential
>
__________________________________________________________________
> AL.Lakshmanan
> Intern(IIITB)
> e-Engineering Lab
>
> John F Welch Technology Centre
> GE India Technology Centre Pvt. Ltd.
> Export Promotional Industrial Park,Phase:2,
> Hoodi Village, Whitefield Road,
> Bangalore - 560 066, India
> Phone: +91 (80) 8412050 - 69 extn 2684
> E-Mail : [EMAIL PROTECTED]
=====
Support anti-Spam legislation.
Join the fight http://www.cauce.org/
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/