Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
FTP get problem

FTP get problem

2003-03-17       - By Keith Hatton
Reply:     1     2     3     4     5  

Doesn't your fileset in the "get" task need to refer to the server's disk
structure?
Just a guess, I haven't worked with the ftp task.

Keith


-----Original Message-----
From: Allan McKenzie [mailto:Allan.McKenzie@(protected)]
Sent: 17 March 2003 12:52
To: 'user@(protected)'
Subject: FTP get problem



I'm new to this mailing list, and glad to be here.

I'm having problems with the ftp 'get' task. I an upload files onto the
remote server with no problems, but I can't retrieve any files. Even if I
try to get exactly the same files that I just uploaded I just get the
message '0 files retrieved'.

Could anyone tell me what I am doing wrong?

Many thanks

Allan Mckenzie


===================  build.xml =====================================
<target name="ftp" >

 <ftp server="192.128.40.10"
  action="put"
  remotedir="public/development/deployment/reconciliation"
  userid="hpftp"
  password="password"
  newer="no"
  binary="yes"
  verbose="true" >
     <fileset dir="D:/temp">
  <include name="**/*.zip"/>
     </fileset>
   </ftp>

 <ftp server="192.128.40.10"
  action="get"
  remotedir="public/development/deployment/reconciliation"
  userid="hpftp"
  password="password"
  newer="no"
  binary="yes"
  verbose="true" >
     <fileset dir="D:/temp">
  <include name="**/*.zip"/>
     </fileset>
   </ftp>
</target>


===================  output    =====================================
ftp:
     [ftp] Opening FTP connection to 192.128.40.10
     [ftp] connected
     [ftp] logging in to FTP server
     [ftp] login succeeded
     [ftp] changing the remote directory
     [ftp] sending files
     [ftp] transferring D:\temp\fred.zip
     [ftp] File D:\temp\fred.zip copied to 192.128.40.10
     [ftp] transferring D:\temp\zip\faxback03032003.zip
     [ftp] File D:\temp\zip\faxback03032003.zip copied to 192.128.40.10
     [ftp] transferring D:\temp\zip\faxback28022003.zip
     [ftp] File D:\temp\zip\faxback28022003.zip copied to 192.128.40.10
     [ftp] 3 files sent
     [ftp] disconnecting
     [ftp] Opening FTP connection to 192.128.40.10
     [ftp] connected
     [ftp] logging in to FTP server
     [ftp] login succeeded
     [ftp] changing the remote directory
     [ftp] getting files
     [ftp] 0 files retrieved
     [ftp] disconnecting

BUILD SUCCESSFUL
Total time: 3 seconds




**********************************************************************

This e-mail and any attachments may contain confidential or privileged
information. If you are not the intended recipient, please contact the
sender immediately and do not use, store or disclose their contents.
Any views expressed are those of the individual sender and not of FTSE
International unless otherwise stated.

                    http://www.ftse.com
**********************************************************************


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)



©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.