Hi Vinod,

First of all this task is not core functionality of NANT Library .

But as you can see below:-

<include name="**" />

It should have been :-

<include name="*.*" />

Please reply back if you have any issues.

Regards,
Jeebitesh Kalantri
From: Vinod Soni [mailto:vs...@humana.com]
Sent: Tuesday, February 15, 2011 5:23 PM
To: nant-developers@lists.sourceforge.net
Subject: [nant-dev] FTP task not working


Dear Team,

I downloaded a FTP task from www.liveingit.de site. Which is used to transfer 
contents from local system directory to over ftp location.

The written the following script to transfer content. but it's getting the 
error when i try to run this. Kindly help if anybody have idea about the same 
or know about some other FTP task.

<target name="MyFTP" description="Copies files to target deploy folder (It may 
be the FTP location).">
     <property name="ftptask" value="C:\Nant 
Version\FTP\ftptask-v1.0.85.41-bin\FTPTask\bin\Release\ftptask.dll"/>
    <property name="remotehost" value="ftp://idea.com"/>
    <property name="username" value="systemadmin"/>
    <property name="pwd" value="123456"/>
    <property name="remote-dir" value="/TESTPFP/test"/>
    <property name="source" value="C:\PFP\Src\Hosts\Humana.Provider.PFP.Web"/>
    <loadtasks assembly="${ftptask}" />

    <connection id="myConn" server="${remotehost}"  username="${username}" 
password="${pwd}"/>
    <ftp createdirs="true" exec="true"
       connection="myConn"
       remotedir="${remote-dir}"
       showdironconnect="true">
      <put type="ascii" localdir="${source}" flatten="true">
        <include name="**" />
      </put>
    </ftp>
  </target>

Error:

System.Net.Sockets.SocketException: The requested name is valid and was found in
 the database, but it does not have the correct associated data being resolved f
or
   at System.Net.Dns.InternalGetHostByName(String hostName, Boolean includeIPv6)

   at System.Net.Dns.Resolve(String hostName)
   at EnterpriseDT.Net.Ftp.FTPClient..ctor(String remoteHost, Int32 controlPort,
 Int32 timeout)
   at EnterpriseDT.Net.Ftp.FTPClient..ctor(String remoteHost)
   at Sourceforge.NAnt.Ftp.Tasks.FTPTask.ftpConnect()
   at Sourceforge.NAnt.Ftp.Tasks.FTPTask.Work()
   at Sourceforge.NAnt.Ftp.Tasks.FTPTask.ExecuteTask()
   at NAnt.Core.Task.Execute()
   at NAnt.Core.Target.Execute()
   at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies)
   at NAnt.Core.Project.Execute()
   at NAnt.Core.Project.Run()

I shall be thankful to you for the help.

Thanks & Regards
Vinod Soni
Enterprise Architecture (Humana)
Desk: +91-120-4398818
Mobile:+91-9899694444
The information transmitted is intended only for the person or entity to which 
it is addressed and may contain CONFIDENTIAL material. If you receive this 
material/information in error, please contact the sender and delete or destroy 
the material/information.

----------------------------------------------------------------------
This message and any attachments are intended only for the use of the addressee 
and may contain information that is privileged and confidential. If the reader 
of the message is not the intended recipient or an authorized representative of 
the intended recipient, you are hereby notified that any dissemination of this 
communication is strictly prohibited. If you have received this communication 
in error, notify the sender immediately by return email and delete the message 
and any attachments from your system.
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to