ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Allan McKenzie <Allan.McKen...@ftse.com>
Subject RE: FTP get problem
Date Mon, 17 Mar 2003 13:23:24 GMT
Hi Jan

Thanks for your reply. 

I'm afraid I tried that. I'm assuming that the 'newer="no"' parameter means
that the files will always be overwritten (at least that works with the
upload). However, I've changed the build script to do what you suggested
(and even deleted the local files to make sure that they are not up to
date), but the same thing happens.

==================  build.xml ======================================
<target name="ftp" >
 <delete>
    <fileset dir="D:/ftptemp" includes="**/*.zip"/>
  </delete>


  <ftp server="192.128.40.10"
	 action="put"
	 remotedir="public/development/deployment/reconciliation"
	 userid="hpftp"
	 password="vladivostok3"
	 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="vladivostok3"
	 newer="no"
	 binary="yes"
	 verbose="true"
    >
      <fileset dir="D:/ftptemp">
	<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

-----Original Message-----
From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de]
Sent: Monday, March 17, 2003 12:58 PM
To: user@ant.apache.org
Subject: AW: FTP get problem


Because the timestamp of the files are the same (local and remote) no get is
needed, because
your local copy is up to date.

If you want to try it, choose a different local directory (dir-attribute in
the fileset).



Jan Matèrne

-----Ursprüngliche Nachricht-----
Von: Allan McKenzie [mailto:Allan.McKenzie@ftse.com]
Gesendet am: Montag, 17. März 2003 13:52
An: 'user@ant.apache.org'
Betreff: 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@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


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

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


Mime
View raw message