ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alan Zall" <a...@xcipio.com>
Subject RE: FTP Issue
Date Thu, 03 Jun 2004 15:21:10 GMT
Tried bot of your options with debug turned on


Adding reference: ant.PropertyHelper
Detected Java version: 1.4 in: c:\java\j2sdk1.4.1_02\jre
Detected OS: Windows 2000
Adding reference: ant.ComponentHelper
Setting ro project property: ant.version -> Apache Ant version 1.6.1
compiled on February 12 2004
Setting ro project property: ant.file -> F:\backinup\build.xml
Adding reference: ant.projectHelper
Adding reference: ant.parsing.context
Adding reference: ant.targets
parsing buildfile F:\backinup\build.xml with URI =
file:///F:/backinup/build.xml
Setting ro project property: ant.project.name -> MyProject
Adding reference: MyProject
Setting ro project property: ant.file.MyProject -> F:\backinup\build.xml
Project base dir set to: F:\backinup
 +Target:
 +Target: init
 +Target: init.cvs
 +Target: getCVSBackup
 +Target: getCVSFiles
 +Target: zipCVSFiles
 +Target: getAndZipCVSFiles
 +Target: backuptest
 +Target: backup
 +Target: help
 +Target: clean.cvs
 +Target: clean
Setting project property: root ->
Setting project property: backup -> f:\backinup
Setting project property: dest -> f:\backinup\dest
Setting project property: source -> f:\backinup\dest\source
Setting project property: cvsServer -> 10.254.202.5
Setting project property: CD-Dir -> m:\source
Setting project property: backupFTPServer -> www.xcipio.com
Setting project property: backupFTPUser -> inskey
Setting project property: backupFTPpassword -> mm8dsrM
Build sequence for target `backup' is [clean.cvs, clean, init, init.cvs,
getCVSBackup, getCVSFiles, zipCVSFiles, getAndZipCVSFiles, backup]
Complete build sequence is [clean.cvs, clean, init, init.cvs, getCVSBackup,
getCVSFiles, zipCVSFiles, getAndZipCVSFiles, backup, backuptest, help, ]

clean.cvs:
   [delete] Deleting directory F:\backinup\dest\source
   [delete] Deleting directory F:\backinup\dest\source
    [mkdir] Created dir: F:\backinup\dest\source

clean:

init:
Setting project property: DSTAMP -> 20040603
Setting project property: TSTAMP -> 1120
Setting project property: TODAY -> June 3 2004
Setting project property: cvsBackupFile -> f:\backinup\dest\backup.tar.gz
Setting project property: cvsSourceFile ->
f:\backinup\dest\source-20040603.zip

init.cvs:
     [echo] Running init.cvs.
Setting project property: cvs.cvsroot ->
:pserver:build@linux01:/usr/local/cvsroot
Setting project property: cvs.localpath -> f:\backinup\dest\source
Setting project property: cvs.localroot ->
Setting project property: cvs.quiet -> true
Setting project property: cvs.command -> -Q checkout

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
Could not load a dependent class
(com/sun/media/jai/codec/FileSeekableStream) for type image
Could not load a dependent class (com/jcraft/jsch/UserInfo) for type sshexec
Could not load a dependent class (com/jcraft/jsch/UserInfo) for type scp
Could not load class (org.apache.tools.ant.tasksdefs.cvslib.CvsVersion) for
type cvsversion
Could not load a dependent class (com/starbase/starteam/Item) for type
stlist
Could not load a dependent class (jdepend/xmlui/JDepend) for type jdepend
Could not load a dependent class (junit/framework/TestListener) for type
junit
Could not load a dependent class (com/starbase/starteam/Item) for type
stcheckin
Could not load a dependent class (com/starbase/starteam/Item) for type
stcheckout
fileset: Setup scanner in dir F:\backinup\dest\backup with patternSet{
includes: [] excludes: [] }
      [ftp] 0 files retrieved
      [ftp] disconnecting
      [ftp] Opening FTP connection to 10.254.202.5
      [ftp] connected
      [ftp] logging in to FTP server
      [ftp] login succeeded
      [ftp] getting files
fileset: Setup scanner in dir F:\backinup\dest\backup with patternSet{
includes: [backup.tar.gz] excludes: [] }
      [ftp] 0 files retrieved
      [ftp] disconnecting


-----Original Message-----
From: Steve Cohen [mailto:scohen@javactivity.org]
Sent: Thursday, June 03, 2004 9:22 AM
To: Ant Users List
Subject: Re: FTP Issue


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:\j
a
>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:\jav
a
>\ 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:scohen@javactivity.org]
> 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: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org


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



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


Mime
View raw message