You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Shailesh Sharma <sh...@yahoo.com> on 2006/07/05 21:55:46 UTC

RE: Are there ANT tasks for SFTP?

is ant-jsch.jar is checked in and part of the release ?
   
  

"Anderson, Rob (Global Trade)" <Ro...@nike.com> wrote:
  Yes, You need to include jsch 0.1.28 in the lib directory, otherwise the
ant-jsch.jar will not build because the resources to build it are not
available.

Pay close attention to this section of the manual page link I sent:

"Make sure you have downloaded any auxiliary jars required to build
tasks you are interested in. These should either be available on the
CLASSPATH or added to the lib directory. See Library Dependencies for a
list of jar requirements for various features. Note that this will make
the auxiliary jars available for the building of Ant only. For running
Ant you will still need to make the jars available as described under
Installing Ant."

-Rob A 

> -----Original Message-----
> From: Shailesh Sharma [mailto:shailesh_scea@yahoo.com] 
> Sent: Thursday, May 18, 2006 11:50 AM
> To: Ant Users List
> Subject: RE: Are there ANT tasks for SFTP?
> 
> Iam still getting problems, if you can please help. Honestly, 
> iam not that good in ANT.
> 
> 1) I have downloaded the following tar ball on my Sun Unix box.
> Location: 
> 
> /home/MYANT/ ant_20060518102501.tar.gz 
> 
> 2) I unzipped and untarred this file on location:
> /home/MYANT/ant
> 
> 3) As recommended by you i followed the steps to "build" 
> the package.
> 
> So I tpyed:
> 
> ./build.sh -Ddist.dir=/home/MY-BUILD dist 
> 
> 4) The build says successful but i could not find 
> "ant-jsch.jar" created anywhere under /home/MY-BUILD
> 
> 
> I DID NOT INCLUDED "jsch 0.1.28" yet ....was it a problem 
> why my "ant-jsch.jar" is not created ???
> 
> please help.
> 
> 
> 
> 
> 
> "Anderson, Rob (Global Trade)" wrote:
> 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:shailesh_scea@yahoo.com]
> > 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)" 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:shailesh_scea@yahoo.com]
> > > 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:shailesh_scea@yahoo.com]
> > > > 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
> > > > 
> > > > jstallard@internetinformatics.net 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: jstallard@internetinformatics.net 
> > > > > [mailto:jstallard@internetinformatics.net]
> > > > > 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: user-unsubscribe@ant.apache.org For
> > > > additional
> > > > > commands, e-mail: user-help@ant.apache.org
> > > > > 
> > > > > 
> > > > > 
> > > > > 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: user-unsubscribe@ant.apache.org For
> > > additional
> > > > commands, e-mail: user-help@ant.apache.org
> > > > 
> > > > 
> > > > 
> > > > 
> > > > ---------------------------------
> > > > 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: user-unsubscribe@ant.apache.org For
> > additional
> > > commands, e-mail: user-help@ant.apache.org
> > > 
> > > 
> > > 
> > > 
> > > ---------------------------------
> > > Get amazing travel prices for air and hotel in one click 
> on Yahoo! 
> > > FareChase
> > > 
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For 
> additional 
> > commands, e-mail: user-help@ant.apache.org
> > 
> > 
> > 
> > 
> > ---------------------------------
> > New Yahoo! Messenger with Voice. Call regular phones from 
> your PC and 
> > save big.
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For 
> additional commands, e-mail: user-help@ant.apache.org
> 
> 
> 
> 
> 
> 
> ---------------------------------
> Feel free to call! Free PC-to-PC calls. Low rates on 
> PC-to-Phone. Get Yahoo! Messenger with Voice
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org



 		
---------------------------------
Want to be your own boss? Learn how on  Yahoo! Small Business.