When I tried to ftp a ear file to a UNIX box from my windows machine, I got the error as :
BUILD FAILED
C:\newWorkspace\DNAHitsEJB\build.xml:163: error during FTP transfer: org.apache.commons.net.MalformedServerReplyException: Could not parse response code.
Server Reply: SSH-2.0-Sun_SSH_1.1
Here is my code in build.xml :
<target name="CopyToUnix" >
<ftp userid="weblogic" password="weblogic" server="unix-dev-5" port="22" remotedir="/opt/bea/weblogic92/user_projects/domains/mydomain/upload" passive="true" timediffauto="true" >
<fileset dir="${workspace.jar.dir}">
<include name="${app.name}.ear"/>
</fileset>
</ftp>
</target>
I tried to FTP by using the same userid-password via PUTTY and also via SSH, however both worked fine. Why the same is not working through
ANT ?
What is the reason behind this ? Any kind of help is appreciated.