AntContrib provides a <trycatch> task ... Jan
> -----UrsprÃngliche Nachricht----- > Von: Anderson, Rob (Global Trade) [mailto:[EMAIL PROTECTED] > 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:[EMAIL PROTECTED] > > Sent: Monday, October 25, 2004 5:10 AM > > To: [EMAIL PROTECTED] > > 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: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > >