ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Atsuhiko Yamanaka" <y...@jcraft.com>
Subject Re: Scp is this possible?
Date Wed, 10 May 2006 05:29:03 GMT
Hi,

2006/5/10, Kev Jackson <kevin.jackson@it.fts-vn.com>:
> Damnit!
>
> "selectors are not supported on remote filesets"
>
> Basically that's what I need, the ability to select the files based on
> the last modified - I don't want to pull back files if they are not
> within the search criteria :(

By following task, I can get only newer files matched with "*.log" on
the remote 'home/weblogic/logs' and save to ${basedir}.

<sftp action="get"
         trust="true"
         server="${host}"
         userid="${user}"
         password="${password}"
         depends="yes"
         remotedir="/home/weblogic/logs">
   <fileset dir="${basedir}" >
     <include name="*.log"/>
  </fileset>
 </sftp>

# Please note that 'depends="yes"'.

Does it not work on your environment or is it enougth?

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


Mime
View raw message