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=""
    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 

Reply via email to