ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rez <pon...@hotmail.com>
Subject RE: SCP and SSHExec tasks
Date Fri, 28 Nov 2008 23:20:33 GMT

Thanks everyone.> Date: Wed, 26 Nov 2008 11:16:00 -0800> From: riznob@gmail.com>
To: user@ant.apache.org> Subject: Re: SCP and SSHExec tasks> > The scp task will
not create remote directories. Also, there is no recursive> option. Yes, you can specify
a fileset, but the directory structure will not> be preserved (as far as I know). If you
are moving a bunch of files and want> to preserve the directory structure, the best thing
to do is...> > 1. zip or tar.gz the files locally> 2. scp the archive to the remote
machine> 3. sshexec to remote machine and unpack the archive> > -Rob Anderson>
> On Wed, Nov 26, 2008 at 3:36 AM, Steve Loughran <stevel@apache.org> wrote:>
> > Rez wrote:> >> >> Hi> >> Is it possible to create the directories
on the remote server on the fly> >> as the scp ant task is executed or do I need
to run sshexec to create them> >> first?> >>> >>> >> >
I use sshexec first, with a mkdir -p as the command. I also have a couple> > of presetdef
definitions to simplify making commands> >> > <presetdef name="rpmssh">>
> <sshexec host="${rpm.ssh.server}"> > username="${rpm.ssh.user}"> > passphrase="${rpm.ssh.passphrase}">
> trust="${rpm.ssh.trust}"> > keyfile="${rpm.ssh.keyfile}"> > timeout="${ssh.command.timeout}">
> />> > </presetdef>> > <presetdef name="rootssh">> >
<rpmssh> > username="root"> > timeout="${ssh.rpm.command.timeout}"> >
/>> > </presetdef>> >> > --------------------------------------------------------------------->
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org> > For additional commands,
e-mail: user-help@ant.apache.org> >> >> > > -- > Rob Anderson>
riznob@gmail.com
_________________________________________________________________
Proud to be a PC? Show the world. Download the “I’m a PC” Messenger themepack now.
hthttp://clk.atdmt.com/MRT/go/119642558/direct/01/
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message