ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeffrey E Care <ca...@us.ibm.com>
Subject Re: Ant ,ftp,java
Date Mon, 20 Feb 2006 13:55:54 GMT
Double check your port numbers.

____________________________________________________________________________________________


Jeffrey E. (Jeff) Care 
carej@us.ibm.com 
IBM WebSphere Application Server Development 
WAS Pyxis Lead Release Engineer 




"Karthik" <karthikn@xius.org> wrote on 02/20/2006 02:31:54 AM:

> Hi form
> 
> On  running the ftp target (in build.xml ) from  java using  "org.
> apache.tools.ant.*" I ageeint this Exception as below.
> 
> 
============================================================================================
> <target name="TgtName">
> 
>    <fileset dir="${libs}">
>     <include name="**/*.jar"/>
>   </fileset> 
> 
>   <ftp server="${ftptype}"
>        remotedir = "${ftpremotedir}"
>     userid = "${ftpid}"
>        password = "${ftppas}" 
>           Port= "22"
>        action="put"
>     separator="/" 
>   >
>     <fileset dir="${src.dir}">
>              <include name="*.txt" />
> 
>           </fileset> 
>      </ftp>
>   </target>
> 
> error:
> --------
> 
> D:\TEST\unix.xml:38: error during FTP transfer: org.apache.commons.
> net.MalformedServerReplyException: Could not parse response code.
> Server Reply: SSH-1.99-OpenSSH_3.6.1p2
>  at 
org.apache.tools.ant.taskdefs.optional.net.FTP.execute(FTP.java:2014)
>  at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>  at org.apache.tools.ant.Task.perform(Task.java:364)
>  at org.apache.tools.ant.Target.execute(Target.java:341)
>  at org.apache.tools.ant.Target.performTasks(Target.java:369)
>  at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>  at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>  at com.xius.copy.os.xnix.FILECOPY1_1.runTarget(FILECOPY1_1.java:43)
>  at com.xius.copy.os.xnix.FILECOPY1_1.main(FILECOPY1_1.java:62)
> 
> 
============================================================================================
> 
> 
> but if I run the same FTP tag  from  ant ( ant -buildfile build.xml 
> ),then  the task is  processeed sucessfully.
> 
> 
> 
> Note : in both cases I have made shure to set classpath of 
> 
> commons-net-1.4.1.jar
> jakarta-oro-2.0.8.jar
> 
> 
> 
> Some body Please tell me why am i getting the error...
> 
> with regards
> Karthik 
Mime
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message