ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject AW: scp task fails when no files match
Date Tue, 26 Oct 2004 05:50:34 GMT
AntContrib provides a <trycatch> task ...

Jan

> -----Urspr√ľngliche Nachricht-----
> Von: Anderson, Rob (Global Trade) [mailto:Rob.Anderson@nike.com]
> Gesendet am: Dienstag, 26. Oktober 2004 01:56
> An: Ant Users List
> Betreff: RE: scp task fails when no files match
> 
> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message