ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From suma.b...@gsa.gov
Subject Re: AW: FTP task
Date Fri, 23 Jul 2004 14:30:24 GMT
Below is the verbose output.
Also the task itself, incase I'm missing something.

<target name="ftpAll">
        <ftp server="eaguxx" userid="sbhat" password="******" 
remotedir="incoming" depends="yes">
           <fileset refid="web.inf"/>
        </ftp>
</target>

-Suma

Apache Ant version 1.6.1 compiled on February 12 2004
Buildfile: build.xml
Detected Java version: 1.4 in: C:\j2sdk1.4.2_04\jre
Detected OS: Windows XP
parsing buildfile C:\ReportsRewite\build.xml with URI = 
file:///C:/ReportsRewite
/build.xml
Project base dir set to: C:\ReportsRewite
Build sequence for target `ftpAll' is [ftpAll]
Complete build sequence is [ clean,
build,ftpAll ]

ftpAll:
      [ftp] Opening FTP connection to eagu39
      [ftp] connected
      [ftp] logging in to FTP server
      [ftp] login succeeded
      [ftp] changing the remote directory
      [ftp] sending files
      [ftp] checking date for WEB-INF/database.tld
      [ftp] disconnecting

BUILD FAILED
C:\ReportsRewite\build.xml:73: error during FTP transfer: 
java.net.SocketExcepti
on: Connection reset
        at 
org.apache.tools.ant.taskdefs.optional.net.FTP.execute(FTP.java:2020)

        at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:301)
        at org.apache.tools.ant.Target.performTasks(Target.java:328)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1063)
        at org.apache.tools.ant.Main.runBuild(Main.java:632)
        at org.apache.tools.ant.Main.startAnt(Main.java:183)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)







Jan.Materne@rzf.fin-nrw.de
07/23/2004 10:15 AM
Please respond to "Ant Users List"
 
        To:     user@ant.apache.org
        cc:     (bcc: Suma Bhat/CONTRACTOR/FIB/CO/GSA/GOV)
        Subject:        AW: FTP task


Can you send the relevant output of the -verbose output?
Just an idea: maybe the number of users of the ftp server is excited :)

Jan


> -----Urspr√ľngliche Nachricht-----
> Von: suma.bhat@gsa.gov [mailto:suma.bhat@gsa.gov]
> Gesendet am: Freitag, 23. Juli 2004 15:50
> An: Ant Users List
> Betreff: RE: FTP task
> 
> Thanks Luis for the fast reply.
> I do have the the two jars that you mentioned in ant's  lib directory.
> 
> roughly 2/5 times I get a SocketException whereas the other 3 
> times it 
> goes through fine.
> 
> 
> Rgds,
> Suma
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> luis.conelly@ge.com
> 07/23/2004 09:48 AM
> Please respond to "Ant Users List"
> 
>         To:     user@ant.apache.org
>         cc:     (bcc: Suma Bhat/CONTRACTOR/FIB/CO/GSA/GOV)
>         Subject:        RE: FTP task
> 
> 
> Could you be more specific?
> 
> Sometimes, you need to add the required jars for FTP task 
> (jakarta oro,
> jakarta commons-net); you can take a look around at
> http://ant.apache.org/manual/install.html#librarydependencies 
> for more 
> info
> on the required jars and where to find them
> 
> Also, you should be aware about FTP going through proxies (see
> http://ant.apache.org/manual/OptionalTasks/ftp.html) limitations.
> 
> Regards
> Luis
> 
> 
> 
> -----Original Message-----
> From: suma.bhat@gsa.gov [mailto:suma.bhat@gsa.gov]
> Sent: Viernes, 23 de Julio de 2004 08:33 a.m.
> To: user@ant.apache.org
> Subject: FTP task
> 
> 
> Hi,
> 
> I'm relatively new to the Ant scene, I had a question about 
> the ftp task.
> It is quite inconsistent and throws SocketException every now 
> and then.
> 
> Anybody know the reason for this ?
> Suggestions for an alternate solution ?
> 
> Thanks,
> Suma
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 
> 
> 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message