ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anderson, Rob (Global Trade)" <Rob.Ander...@nike.com>
Subject RE: FTP Task
Date Fri, 19 May 2006 16:57:34 GMT
You cannot use FTP to transfer files to or from an SSH server. 
Two options:
1) Make sure you have an FTP server running and point the ftp task to
port 23, the default port for FTP.
2) Use the scp task.

-Rob A

> -----Original Message-----
> From: Venkatesh Vijayakumar04 [mailto:Venkatesh_V04@infosys.com] 
> Sent: Friday, May 19, 2006 5:51 AM
> To: Ant Users List
> Subject: FTP Task
> 
> 
> Hi
> 
> 
> 
> 
> I am getting the following error when I use ftp task in my ant script.
> 
> 
> 
> 
> <ftp action="mkdir"
> 
>                         server="${IP.T0.7020}"
> 
>                         port="22"
> 
>                         userid="${IP.USER}"
> 
>                         password="${IP.PASSWORD}"
> 
> 
>                         remotedir="${PROJECTNAME}"
> 
> 
>                         verbose="yes">
> 
>             </ftp>
> 
> 
> 
> 
>      [echo]
> 
> 
>      [echo]             Compling all class files....
> 
>      [echo]      
> 
> 
> 
> 
> 
> makedirOnline:
> 
>      [echo]
> 
> 
>      [echo]             Creating directories for Online
> 
>      [echo]      
> 
> 
> 
> 
> 
> compile:
> 
>      [echo] Compiling source files
> 
>     [javac] Compiling 13 source files to D:\Automation 
> 2\OnlineBuild\May19_1\source
> 
>     [javac] Note: C:\OnlineSources\Application 
> Layer\Authentication 
> Module\com\mountain\molehill\auth\MolehillDBAuthenticator.java
>  uses or overrides a deprecated API.
> 
>     [javac] Note: Recompile with -deprecation for details.
> 
> 
> 
> 
> NectarEJB:
> 
>      [echo]
> 
> 
>      [echo]             Creating NectarEJB.jar...    
> 
> 
>      [echo]      
> 
> 
> 
> 
> 
> jars:
> 
> 
> 
> 
> buildOnline:
> 
> 
> 
> 
> FTPT0makedir:
> 
> 
> 
> 
> BUILD FAILED
> 
> C:\Automation 2\Build Scripts\Services.xml:15: error during FTP
> transfer: 
> org.apache.commons.net.MalformedServerReplyException: Could 
> not parse response code.
> 
> Server Reply: SSH-1.99-OpenSSH_3.6.1p1
> 
> 
> 
> 
> Total time: 14 seconds
> 
> 
> 
> 
> 
> 
> 
> Thanks
> 
> Venkatesh.V
> 
> 
> 
> 
> 
> 
> **************** CAUTION - Disclaimer ***************** This 
> e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION 
> intended solely for the use of the addressee(s). If you are 
> not the intended recipient, please notify the sender by 
> e-mail and delete the original message. Further, you are not 
> to copy, disclose, or distribute this e-mail or its contents 
> to any other person and any such actions are unlawful. This 
> e-mail may contain viruses. Infosys has taken every 
> reasonable precaution to minimize this risk, but is not 
> liable for any damage you may sustain as a result of any 
> virus in this e-mail. You should carry out your own virus 
> checks before opening the e-mail or attachment. Infosys 
> reserves the right to monitor and review the content of all 
> messages sent to or from this e-mail address. Messages sent 
> to or from this e-mail address may be stored on the Infosys 
> e-mail system.
> ***INFOSYS******** End of Disclaimer ********INFOSYS***
> 


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


Mime
View raw message