ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rhino" <>
Subject Re: Ant task scp or sftp
Date Sun, 30 Jan 2005 13:36:36 GMT

----- Original Message ----- 
From: "Nicolas Vervelle" <>
To: <>
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
> ability to upload only the newer files so it takes me a lot of time (30
> 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
> 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
> 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


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:
For additional commands, e-mail:

View raw message