There is also a proposed sftp task that has been submitted to the bug database.
http://issues.apache.org/bugzilla/show_bug.cgi?id=39532 This is dependent on the enhancements to the scp task mentioned in my other email, so you will want the latest nightly build to run this also. -Rob A > -----Original Message----- > From: Shailesh Sharma [mailto:[EMAIL PROTECTED] > Sent: Friday, May 12, 2006 8:40 AM > To: Ant Users List > Subject: Re: Are there ANT tasks for SFTP? > > Iam working on implementing SFTP.... > > <sftp action="send" > server="${server}" > userid="${userid}" > password="${password}" > remotedir="incoming" > depends="yes"> > <fileset dir="htdocs/manual"/> > </sftp> > > > But it does not seems to work as it throws ... > what jar file i need to download and put it in CLASSPATH ? > > > > > Ant could not find the task or a class this task relies upon. > This is common and has a number of causes; the usual > solutions are to read the manual pages then download and > install needed JAR files, or fix the build file: > - You have misspelt 'sftp'. > Fix: check your spelling. > - The task needs an external JAR file to execute > and this is not found at the right place in the classpath. > Fix: check the documentation for dependencies. > Fix: declare the task. > - The task is an Ant optional task and optional.jar is absent > Fix: look for optional.jar in ANT_HOME/lib, download if needed > - The task was not built into optional.jar as dependent > libraries were not found at build time. > Fix: look in the JAR to verify, then rebuild with the needed > libraries, or download a release version from apache.org > - The build file was written for a later version of Ant > Fix: upgrade to at least the latest release version of Ant > - The task is not an Ant core or optional task > and needs to be declared using <taskdef>. > Remember that for JAR files to be visible to Ant tasks > implemented in ANT_HOME/lib, the files must be in the same > directory or on the classpath > Please neither file bug reports on this problem, nor email > the Ant mailing lists, until all of these causes have been > explored, as this is not an Ant bug. > Total time: 4 seconds > Buildfile: build.xml > > [EMAIL PROTECTED] wrote: > Thanks, Fintan, > > however, scp is a wrapper for sshexec for file transfers. > according to the library vendor JSch (JSch.jar), 'SSH File > Transfer Protocol version 4' is listed as a to do. > > I'm not sure what the advantage of sftp is over ftp over ssh. > We may be able to get by with scp. > > James > > On > "Fintan Hynes" wrote: > > I think will do the job.... > > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] > > Sent: 08 September 2005 15:30 > > To: Ant Users List; Ant Users List > > Subject: Are there ANT tasks for SFTP? > > > > > > Hello ANT users, > > > > I'm building a ANT deploy script that needs to use SFTP. > > I > > see FTP and SshExec in the optional tasks, but nothing on SFTP. > > > > Does anyone know if an sftp task has been attempted or requested? > > > > Thanks, > > James Stallard > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] For > additional > > commands, e-mail: [EMAIL PROTECTED] > > > > > > > > This e-mail and any files transmitted with it are > confidential and may > > be privileged and are intended solely for the individual named/ for > > the use of the individual or entity to whom they are > addressed.If you > > are not the intended addressee, you should not disseminate, > distribute > > or copy this e-mail.Please notify the sender immediately if > you have > > received this e-mail by mistake and delete this e-mail from your > > system.If you are not the intended recipient, you are notified that > > reviewing, disclosing, copying, distributing or taking any > action in > > reliance on the contents of this e-mail is strictly > prohibited.Please > > note that any views or opinions expressed in this e-mail are solely > > those of the author and do not necessarily represent those of > > Traventec Limited. This e-mail has been swept for computer viruses > > however Traventec Limited accepts no liability for any > damage caused > > by any virus transmitted by this e-mail. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] For > additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------- > Get amazing travel prices for air and hotel in one click on > Yahoo! FareChase > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
