ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anderson, Rob (Global Trade)" <Rob.Ander...@nike.com>
Subject RE: Scp : Definition of a remote file set
Date Mon, 15 Aug 2005 18:48:35 GMT
Currently, no. There is a feature request in bugzilla for this...

http://issues.apache.org/bugzilla/show_bug.cgi?id=35532

If you like the idea, go vote for the bug.

-Rob A

> -----Original Message-----
> From: duvelbier-tsmets@yahoo.com [mailto:duvelbier-tsmets@yahoo.com]
> Sent: Friday, August 12, 2005 1:58 AM
> To: Ant Users List
> Subject: RE: Scp : Definition of a remote file set
> 
> 
> Is there a way to write soemthing like this ?
> 
> <sshexec knownhosts="${host}"
>          trust="${trust.flag}"
>          host="${host}"
>          username="${usr}">
>   cd /home/${usr}/src/${application-module};
>   tar cf stuff.tar.gz ./jython/Util.py ./jython/Common*.py 
> ./jython/Parameters.py ./jython/Main.py
> ./jython/Constants.py
> </sshexec>
> 
> or even better :
> <sshexec knownhosts="${host}"
>          trust="${trust.flag}"
>          host="${host}"
>          username="${usr}">
>   <command>
>     cd /home/${usr}/src/${application-module};
>     tar cf stuff.tar ./jython/Util.py ./jython/Common*.py 
> ./jython/Parameters.py ./jython/Main.py
> ./jython/Constants.py
>   </command>
> </sshexec>
> 
> As far as I can read the sshexec doco's they never mentionned 
> something like that ... but ...
> 
> \T,
> --- "Anderson, Rob (Global Trade)" <Rob.Anderson@nike.com> wrote:
> 
> > Try this...
> > 
> > <sshexec knownhosts="${host}"
> >          trust="${trust.flag}"
> >          host="${host}"
> >          username="${usr}"
> >          command="cd /home/${usr}/src/${application-module};
> >                   tar cf stuff.tar.gz ./jython/Util.py 
> ./jython/Common*.py
> > ./jython/Parameters.py ./jython/Main.py ./jython/Constants.py"/>
> > 
> > <scp todir="." 
> file="${usr}:${pwd}@${host}:/home/${usr}/src/${application-mod
> ule}/stuff.tar.gz"
> >           verbose="${verbose.flag}"
> >           trust="${trust.flag}">
> > 
> > Then uppack stuff.tar.gz locally using <tar> task.
> > 
> > -Rob A
> > 
> > > -----Original Message-----
> > > From: duvelbier-tsmets@yahoo.com 
> [mailto:duvelbier-tsmets@yahoo.com]
> > > Sent: Thursday, August 11, 2005 8:25 AM
> > > To: Ant Users
> > > Subject: Scp : Definition of a remote file set
> > > 
> > > 
> > > 
> > > I would like to copy many files from a remote server to 
> my localhost.
> > > I wondered if the following sytnax could be used :
> > > 
> > >     <scp todir="."
> > >          verbose="${verbose.flag}"
> > >          knownhosts="${host}"
> > >          trust="${trust.flag}">
> > >             <fileset 
> > > 
> dir="${usr}:${pwd}@${host}:/home/${usr}/src/${application-module}">
> > >                 <include name="./jython/Util.py" />
> > >                 <include name="./jython/Common*.py" />
> > >                 <include name="./jython/Parameters.py" />
> > >                 <include name="./jython/Main.py" />
> > >                 <include name="./jython/Constants.py" />
> > >             </fileset>          
> > >     </scp>  
> > > 
> > > Otherwise I will have to do as many SCP's as there are files ...
> > > Not bad but could be better :))
> > > 
> > > Tx,
> > > 
> > > \T,
> > > 
> > > 
> > > 
> > > Any fool can write code that a computer can understand. 
> > > Good programmers write code that humans can understand.
> > >                                                    Martin Fowler 
> > > T. : +32 (0)2 742 05 94
> > > M. : +32 (0)497 44 68 12
> > > 
> > > 
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > > For additional commands, e-mail: user-help@ant.apache.org
> > > 
> > > 
> > > 
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> > 
> > 
> 
> 
> Any fool can write code that a computer can understand. 
> Good programmers write code that humans can understand.
>                                                    Martin Fowler 
> T. : +32 (0)2 742 05 94
> M. : +32 (0)497 44 68 12
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 
> 


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


Mime
View raw message