ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Lévy-Lambert <anto...@antbuild.com>
Subject Re: FTP Issue
Date Mon, 14 Jun 2004 20:59:09 GMT
Hi Alan,

I have simulated your case by using the Gnu Inetutils ftp server of cygwin.

<project name="buildftp">
  <ftp action="get" server="localhost" remotedir="/cygdrive/c/dev/testant"
userid="******" password="*****" verbose="yes">
         <fileset dir="c:/temp">
            <include name="xmlvalidate/dictionary.xsd"/>
         </fileset>
      </ftp>
</project>

with ant 1.6.1, commons-net 1.0.0 and jakarta-oro-2.0.5, I get this 
ftping on a Windows client against a Linux client  to work :

C:\dev\testant>ant -f buildftp.xml
Buildfile: buildftp.xml
      [ftp] getting files
      [ftp] transferring xmlvalidate\dictionary.xsd to 
C:\temp\xmlvalidate\dicti
onary.xsd
      [ftp] 1 files retrieved

BUILD SUCCESSFUL
Total time: 2 seconds

with commons-net-1.2.1, ant 1.6.0 and jakarta-oro-2.0.5, the ftp does 
not work.

C:\dev\testant>ant -f buildftp.xml
Buildfile: buildftp.xml
      [ftp] getting files
      [ftp] 0 files retrieved

BUILD SUCCESSFUL
Total time: 2 seconds

There is definitely a bug. I did change the ant ftp task implementation 
between ant 1.5.4 and ant 1.6.0 to speed up download
when users have indicated specific include patterns (like you). It looks 
like in some cases it does not work. :-(

Cheers,

Antoine



>On Thursday 03 June 2004 7:49 am, Alan Zall wrote:
>  
>
>>Here is some additional information. This became a problem when I upgraded
>>to version 1.6.1
>>
>>
>>Here is the segment, i am talking about
>>#############
>>      <ftp action="get" server="${cvsServer}" remotedir="/home/build/"
>>userid="build" password="*******" verbose="yes">
>>         <fileset dir="${dest}">
>>            <include name="backup/backup.tar.gz"/>
>>         </fileset>
>>      </ftp>
>>#############
>>
>>getCVSBackup:
>>      [ftp] Opening FTP connection to 10.254.202.5
>>      [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
>>
>>
>>    
>>
>>
>>    
>>
>C:\java\apache-ant-1.6.1\lib\commons-net-1.2.
>  
>
>>1 .jar
>>
>>    
>>
>;C:\java\apache-ant-1.6.1\lib\jakarta-oro-2.0.8.jar
>



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message