Ok thanks!
From: Bob Archer [mailto:
Bob.Archer@amsi...]
Sent: Thursday, February 23, 2012 9:46 AM
To: Chris Fouts;
nant-users@list...
Subject: RE: How to suppress <exec> errors?
I think the best/only way you can do this is to create a batch file to do the disconnect and have it always return a success return code. I have a similar issues with a command line app that doesn't return 0 for success and there is no way to tell Nant what return code signifies success/failure.
BOb
From: Chris Fouts [mailto:
Chris.Fouts@caem...]
Sent: Thursday, February 23, 2012 9:42 AM
To:
nant-users@list...
Subject: [NAnt-users] How to suppress <exec> errors?
One of the things I do in my script is to disconnect a network drive, regardless is it's connected or not, and of course if it's not already connected I get an error. I ignore the error via failonerror=false, but I want to go one step further and suppress the error generated.
***This e-mail message is intended only for the above named recipient(s)
and may contain information that is sensitive or proprietary. If you have
received this message in error or are not the named recipient(s), please
immediately notify the sender, delete this e-mail message without making
a copy and do not disclose or relay this e-mail message to anyone.***
opensubscriber is not affiliated with the authors of this message nor responsible for its content.