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 task fails when no files match
Date Mon, 25 Oct 2004 23:56:21 GMT
This funcionality is currently the same as that of command line scp, which will also exit with
a error status code under these conditions. There is no way to do what you want with the current
implementation.

-Rob Anderson

> -----Original Message-----
> From: Wojciech Biela [mailto:wbiela@exorigo.pl]
> Sent: Monday, October 25, 2004 5:10 AM
> To: user@ant.apache.org
> Subject: scp task fails when no files match
> 
> 
> Hi,
> 
> I hoped to find something on this in the mail archives, but I didn't. 
> Strange, I was pretty sure I'm not the first to run into this 
> ... anyway:
> 
> I use scp to get files from a remote serwer to a local dir, the whole 
> script works fine until the remote dir is empty (i.e. the pattern 
> doesn't match any files to download), then it fails ..
> 
> is there any way to make it just not do anything, just 
> siletly pass, the 
> scp "failonerror" attribute is not a good choise because I want 
> transmission problems to cause biuld errors, but an empty dir 
> should not 
> be considered an error.
> 
> any ideas ?
> 
> thanks in advance
> 
> Best regards
> Wojtek Biela
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 
> 
Mime
View raw message