You are headed in the right direction. This is a source distribution.
You will need to compile the distribution. The updated scp task with
support for sftp will be in ant-jsch.jar. Make sure you have downloaded
jsch 0.1.28 or later and place it in the lib directory before you build.
Also, refer to the manaul page for building Ant...

http://ant.apache.org/manual/install.html#buildingant

-Rob A

> -----Original Message-----
> From: Shailesh Sharma [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, May 18, 2006 7:35 AM
> To: Ant Users List
> Subject: RE: Are there ANT tasks for SFTP?
> 
> Rob, Thanks for your help.
>    
>   I have downloaded package: ant_20060518102501.tar.gz 
>    
>   But it cotains only source code (java).
>    
>   This package does not have updated ant.jar in it which 
> possibly contains the SFTP implementation .....
>    
>   Iam doing something incorrect ?
>    
>   
> 
> "Anderson, Rob (Global Trade)" <[EMAIL PROTECTED]> wrote:
>   Get the latest snapshot from source control and build the 
> whole dist...
> http://cvs.apache.org/snapshots/ant/
> 
> -Rob A 
> 
> > -----Original Message-----
> > From: Shailesh Sharma [mailto:[EMAIL PROTECTED]
> > Sent: Friday, May 12, 2006 12:38 PM
> > To: Ant Users List
> > Subject: RE: Are there ANT tasks for SFTP?
> > 
> > latest build of ant.jar ?
> > 
> > 
> > 
> > 
> > "Anderson, Rob (Global Trade)" wrote:
> > The scp task now supports sftp protocol. The changes have yet to be 
> > released, but are checked in to svn. Get the latest nightly 
> build and 
> > see the scp task documentation.
> > 
> > -Rob A
> > 
> > > -----Original Message-----
> > > From: Shailesh Sharma [mailto:[EMAIL PROTECTED]
> > > Sent: Friday, May 12, 2006 9:49 AM
> > > To: Ant Users List
> > > Subject: Re: Are there ANT tasks for SFTP?
> > > 
> > > can somebody please answer .... SFTP is new to me ...and
> > iam not been
> > > able to find documentation how to implement SFTP ?
> > > 
> > > Please help if you can.
> > > 
> > > 
> > > 
> > > Shailesh Sharma wrote:
> > > Iam working on implementing SFTP....
> > > 
> > > server="${server}"
> > > userid="${userid}"
> > > password="${password}"
> > > remotedir="incoming"
> > > depends="yes">
> > > 
> > > 
> > > 
> > > 
> > > 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 .
> > > 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
> > > 
> > > 
> > > ---------------------------------
> > > Yahoo! Messenger with Voice. PC-to-Phone calls for 
> ridiculously low 
> > > rates.
> > > 
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > 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]
> 
> 
> 
>               
> ---------------------------------
> New Yahoo! Messenger with Voice. Call regular phones from 
> your PC and save big.
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to