----- Original Message ----- From: "Nicolas Vervelle" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Sunday, January 30, 2005 7:55 AM Subject: Ant task scp or sftp
> Hello, > > I need to upload files to a server that accepts only secured connections > (scp, sftp). > > I'm currently using the scp ant task to do the job, but this task lacks the > ability to upload only the newer files so it takes me a lot of time (30 mns > now but increasing because more files are added) to upload when only a few > files really need to be uploaded. > Is there a way to upload only newer files ? > > The ftp task has a "depends" or "newer" parameter to do this, but it is not > a secured ftp. > I looked for a sftp task but I didn't find it. > > An other idea was to open a ssh connection before and then use the ftp task, > but I don't know how to open a ssh connection in ant either. > > Any help will be appreciated. > Nicolas > Have you tried using the sshexec task instead of scp? I've never tried putting a 'copy' (or 'cp') in the command parameter but I assume it will work. Then perhaps, you can copy only the desired files to the other machine. Rhino -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.7.4 - Release Date: 25/01/2005 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
