You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Bryan P. Glennon" <br...@bpgc.com> on 2001/12/15 00:27:49 UTC
Problems with FTP task
I can't seem to get the optional FTP task working. I have all the
correct jar files installed (the task works - see debug output below),
but never seems to do anything. I have tried sending files, getting
files, and listing the directory, all with the same result. I have
resorted to copying the example from the docs, and I can't even get it
to work.
Here's the target definition:
<target name="ftp">
<ftp action="list"
listing="tt.txt"
server="serverName" userid="me" password="mypassword" >
<fileset>
<include name="**"/>
</fileset>
</ftp>
</target>
And here's the relevant section of the output from ant -debug ftp
ftp:
[ftp] Opening FTP connection to serverName
[ftp] connected
[ftp] logging in to FTP server
[ftp] login succeeded
[ftp] disconnecting
BUILD SUCCESSFUL
So, what am I doing wrong?
Thanks,
Bryan
--
Bryan Glennon (mailto:bryan@bpgc.com)
BPG Consulting, Inc. (http://www.bpgc.com)
Tech Question? (mailto:techQuestion@bpgc.com)
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Problems with FTP task
Posted by Erik Hatcher <ja...@ehatchersolutions.com>.
There is a bug in Ant 1.4.1 (and earlier):
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4821
If you add remotedir it should work for you.
Erik
----- Original Message -----
From: "Bryan P. Glennon" <br...@bpgc.com>
To: <an...@jakarta.apache.org>
Sent: Friday, December 14, 2001 6:27 PM
Subject: Problems with FTP task
I can't seem to get the optional FTP task working. I have all the
correct jar files installed (the task works - see debug output below),
but never seems to do anything. I have tried sending files, getting
files, and listing the directory, all with the same result. I have
resorted to copying the example from the docs, and I can't even get it
to work.
Here's the target definition:
<target name="ftp">
<ftp action="list"
listing="tt.txt"
server="serverName" userid="me" password="mypassword" >
<fileset>
<include name="**"/>
</fileset>
</ftp>
</target>
And here's the relevant section of the output from ant -debug ftp
ftp:
[ftp] Opening FTP connection to serverName
[ftp] connected
[ftp] logging in to FTP server
[ftp] login succeeded
[ftp] disconnecting
BUILD SUCCESSFUL
So, what am I doing wrong?
Thanks,
Bryan
--
Bryan Glennon (mailto:bryan@bpgc.com)
BPG Consulting, Inc. (http://www.bpgc.com)
Tech Question? (mailto:techQuestion@bpgc.com)
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>