I suspect that your problem is somewhere in your script rather than on the 
commons-net side. 

Are you able, using Ant and the <ftp> task in some other context, to upload 
any files from this server?  I suspect you would be able to retrieve files.

The following suggestions are purely for experimental purposes, to pin down 
the problem.

Try running your script with -debug and see if that provides any useful 
information.

Or try this:

 <ftp action="get" server="${cvsServer}" remotedir="/home/build/backup/"
   userid="build" password="*******" verbose="yes">
          <fileset dir="${dest}/backup">
             <include name="backup.tar.gz"/>
          </fileset>
</ftp>

Also, since backup.tar.gz appears to be the only file in this directory and 
there are no subdirectories, you could also, for experimentation purposes, 
try this:

 <ftp action="get" server="${cvsServer}" remotedir="/home/build/backup/"
   userid="build" password="*******" verbose="yes">
          <fileset dir="${dest}/backup"/>
</ftp>





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
>
>
> ###############
> Here is a copy of an ftp session where the file is....
> N:\backinup\dest\backup>ftp 10.254.202.5
> Connected to 10.254.202.5.
> 220 linux01.localdomain FTP server (Version wu-2.6.1(1) Wed Aug 9 05:54:50
> EDT 2
> 000) ready.
> User (10.254.202.5:(none)): build
> 331 Password required for build.
> Password:
> 230 User build logged in.
> ftp> pwd
> 257 "/home/build" is current directory.
> ftp> ls backup/backup.tar.gz
> 200 PORT command successful.
> 150 Opening ASCII mode data connection for file list.
> backup/backup.tar.gz
> 226 Transfer complete.
> ftp: 22 bytes received in 0.00Seconds 22000.00Kbytes/sec.
>
> #################
>
> and here is the diagnostics dump
> ############
> Apache Ant version 1.6.1 compiled on February 12 2004
> ------- Ant diagnostics report -------
> Apache Ant version 1.6.1 compiled on February 12 2004
>
> -------------------------------------------
>  Implementation Version (JDK1.2+ only)
> -------------------------------------------
> core tasks     : 1.6.1
> optional tasks : 1.6.1
>
> -------------------------------------------
>  ANT_HOME/lib jar listing
> -------------------------------------------
> ant.home: c:\java\apache-ant-1.6.1
> ant-antlr.jar (5650 bytes)
> ant-apache-bsf.jar (12483 bytes)
> ant-apache-resolver.jar (4079 bytes)
> ant-commons-logging.jar (3845 bytes)
> ant-commons-net.jar (34888 bytes)
> ant-icontract.jar (9667 bytes)
> ant-jai.jar (21505 bytes)
> ant-jakarta-bcel.jar (8625 bytes)
> ant-jakarta-log4j.jar (3025 bytes)
> ant-jakarta-oro.jar (48101 bytes)
> ant-jakarta-regexp.jar (3708 bytes)
> ant-javamail.jar (6737 bytes)
> ant-jdepend.jar (7969 bytes)
> ant-jmf.jar (6609 bytes)
> ant-jsch.jar (21397 bytes)
> ant-junit.jar (67280 bytes)
> ant-launcher.jar (8412 bytes)
> ant-netrexx.jar (9898 bytes)
> ant-nodeps.jar (406788 bytes)
> ant-starteam.jar (35511 bytes)
> ant-stylebook.jar (2314 bytes)
> ant-swing.jar (6822 bytes)
> ant-trax.jar (66977 bytes)
> ant-vaj.jar (48313 bytes)
> ant-weblogic.jar (14410 bytes)
> ant-xalan1.jar (3932 bytes)
> ant-xalan2.jar (2489 bytes)
> ant-xslp.jar (2236 bytes)
> ant.jar (958858 bytes)
> xercesImpl.jar (959247 bytes)
> xml-apis.jar (124724 bytes)
> commons-net-1.2.1.jar (153264 bytes)
> jakarta-oro-2.0.8.jar (65261 bytes)
>
> -------------------------------------------
>  Tasks availability
> -------------------------------------------
> image : Missing dependency com.sun.media.jai.codec.FileSeekableStream
> sshexec : Missing dependency com.jcraft.jsch.UserInfo
> scp : Missing dependency com.jcraft.jsch.UserInfo
> cvsversion : Not Available
> stlist : Missing dependency com.starbase.starteam.Item
> jdepend : Missing dependency jdepend.xmlui.JDepend
> junit : Missing dependency junit.framework.TestListener
> stcheckin : Missing dependency com.starbase.starteam.Item
> stcheckout : Missing dependency com.starbase.starteam.Item
>
> -------------------------------------------
>  org.apache.env.Which diagnostics
> -------------------------------------------
> Not available.
> Download it at http://xml.apache.org/commons/
>
> -------------------------------------------
>  XML Parser information
> -------------------------------------------
> XML Parser : org.apache.xerces.jaxp.SAXParserImpl
> XML Parser Location: C:\java\apache-ant-1.6.1\lib\xercesImpl.jar
>
> -------------------------------------------
>  System properties
> -------------------------------------------
> java.runtime.name : Java(TM) 2 Runtime Environment, Standard Edition
> sun.boot.library.path : c:\java\j2sdk1.4.1_02\jre\bin
> java.vm.version : 1.4.1_02-b06
> ant.library.dir : C:\java\apache-ant-1.6.1\lib
> java.vm.vendor : Sun Microsystems Inc.
> java.vendor.url : http://java.sun.com/
> path.separator : ;
> java.vm.name : Java HotSpot(TM) Client VM
> file.encoding.pkg : sun.io
> user.country : US
> sun.os.patch.level : Service Pack 4
> java.vm.specification.name : Java Virtual Machine Specification
> user.dir : F:\backinup
> java.runtime.version : 1.4.1_02-b06
> java.awt.graphicsenv : sun.awt.Win32GraphicsEnvironment
> java.endorsed.dirs : c:\java\j2sdk1.4.1_02\jre\lib\endorsed
> os.arch : x86
> java.io.tmpdir : C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\
> line.separator :
>
> java.vm.specification.vendor : Sun Microsystems Inc.
> user.variant :
> os.name : Windows 2000
> ant.home : c:\java\apache-ant-1.6.1
> sun.java2d.fontpath :
> java.library.path :
> c:\java\j2sdk1.4.1_02\bin;.;C:\WINNT\system32;C:\WINNT;C:\WI
> NNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;c:\java\apache-ant-1.6.1\bin;C
>: \Pro
> gram Files\GNU\WinCvs 1.2;"C:\Program Files\Symantec\Norton Ghost 2003\"
> java.specification.name : Java Platform API Specification
> java.class.version : 48.0
> java.util.prefs.PreferencesFactory :
> java.util.prefs.WindowsPreferencesFactory
> os.version : 5.0
> user.home : C:\Documents and Settings\Administrator
> user.timezone : America/New_York
> java.awt.printerjob : sun.awt.windows.WPrinterJob
> file.encoding : Cp1252
> java.specification.version : 1.4
> java.class.path :
> c:\java\apache-ant-1.6.1\lib\ant-launcher.jar;C:\java\apache-a
> nt-1.6.1\lib\ant-antlr.jar;C:\java\apache-ant-1.6.1\lib\ant-apache-bsf.jar;
>C
>
> :\ja
>
> va\apache-ant-1.6.1\lib\ant-apache-resolver.jar;C:\java\apache-ant-1.6.1\li
>b \ant
> -commons-logging.jar;C:\java\apache-ant-1.6.1\lib\ant-commons-net.jar;C:\ja
>v a\ap
> ache-ant-1.6.1\lib\ant-icontract.jar;C:\java\apache-ant-1.6.1\lib\ant-jai.j
>a r;C:
> \java\apache-ant-1.6.1\lib\ant-jakarta-bcel.jar;C:\java\apache-ant-1.6.1\li
>b \ant
> -jakarta-log4j.jar;C:\java\apache-ant-1.6.1\lib\ant-jakarta-oro.jar;C:\java
>\ apac
> he-ant-1.6.1\lib\ant-jakarta-regexp.jar;C:\java\apache-ant-1.6.1\lib\ant-ja
>v amai
> l.jar;C:\java\apache-ant-1.6.1\lib\ant-jdepend.jar;C:\java\apache-ant-1.6.1
>\ lib\
> ant-jmf.jar;C:\java\apache-ant-1.6.1\lib\ant-jsch.jar;C:\java\apache-ant-1.
>6 .1\l
> ib\ant-junit.jar;C:\java\apache-ant-1.6.1\lib\ant-launcher.jar;C:\java\apac
>h e-an
> t-1.6.1\lib\ant-netrexx.jar;C:\java\apache-ant-1.6.1\lib\ant-nodeps.jar;C:\
>j ava\
> apache-ant-1.6.1\lib\ant-starteam.jar;C:\java\apache-ant-1.6.1\lib\ant-styl
>e book
> .jar;C:\java\apache-ant-1.6.1\lib\ant-swing.jar;C:\java\apache-ant-1.6.1\li
>b \ant
> -trax.jar;C:\java\apache-ant-1.6.1\lib\ant-vaj.jar;C:\java\apache-ant-1.6.1
>\ lib\
> ant-weblogic.jar;C:\java\apache-ant-1.6.1\lib\ant-xalan1.jar;C:\java\apache
>- ant-
> 1.6.1\lib\ant-xalan2.jar;C:\java\apache-ant-1.6.1\lib\ant-xslp.jar;C:\java\
>a pach
> e-ant-1.6.1\lib\ant.jar;C:\java\apache-ant-1.6.1\lib\xercesImpl.jar;C:\java
>\ apac
> he-ant-1.6.1\lib\xml-apis.jar;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;c:\java\j2sdk1.4.1_02\l
>i b\to
> ols.jar
> user.name : Administrator
> java.vm.specification.version : 1.0
> java.home : c:\java\j2sdk1.4.1_02\jre
> sun.arch.data.model : 32
> user.language : en
> java.specification.vendor : Sun Microsystems Inc.
> awt.toolkit : sun.awt.windows.WToolkit
> java.vm.info : mixed mode
> java.version : 1.4.1_02
> java.ext.dirs : c:\java\j2sdk1.4.1_02\jre\lib\ext
> sun.boot.class.path :
> c:\java\j2sdk1.4.1_02\jre\lib\rt.jar;c:\java\j2sdk1.4.1_02
> \jre\lib\i18n.jar;c:\java\j2sdk1.4.1_02\jre\lib\sunrsasign.jar;c:\java\j2sd
>k 1.4.
> 1_02\jre\lib\jsse.jar;c:\java\j2sdk1.4.1_02\jre\lib\jce.jar;c:\java\j2sdk1.
>4 .1_0
> 2\jre\lib\charsets.jar;c:\java\j2sdk1.4.1_02\jre\classes
> java.vendor : Sun Microsystems Inc.
> file.separator : \
> java.vendor.url.bug : http://java.sun.com/cgi-bin/bugreport.cgi
> sun.io.unicode.encoding : UnicodeLittle
> sun.cpu.endian : little
> sun.cpu.isalist : pentium i486 i386
> #####################################################################
> -----Original Message-----
> From: Steve Cohen [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 02, 2004 12:41 PM
> To: Ant Users List
> Subject: Re: FTP Issue
>
>
> Please send your ant script or the relevant portion.  Also what version of
> jakarta-commons/net is on your classpath, what version of Linux.  I can't
> offhand think of a reason why this should not work.  I tried inserting your
> backup.tar.gz line into the JUnit test for UnixFTPFileEntryParser in
> commons-net and there's no problem there.
>
> On Wednesday 02 June 2004 9:19 am, Alan Zall wrote:
> > I have an ant script that pulls content from a linux box, combines it
> > with local Windows files, and pushes the combination to a Windows FTP
> > server.
> >
> > The Windows FTP work is working fine. However, the linux server is not
> > playing nice with the updated version of ant. Here is the listing from
> > the Linux box which returns nothing in Ant.
> >
> > ftp> ls -al
> > 200 PORT command successful.
> > 150 Opening ASCII mode data connection for /bin/ls.
> > total 87152
> > drwxr-xr-x    2 root     root         4096 Mar 27  2001 .
> > drwx------    5 build    build        4096 Mar 27  2001 ..
> > -rw-r--r--    1 root     root     89139812 May 31 23:02 backup.tar.gz
> > 226 Transfer complete.
> > ftp: 203 bytes received in 0.00Seconds 203000.00Kbytes/sec.
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to