Re: How to suppress <exec> errors?
Bob Archer <[email protected]> Thu, 23 Feb 2012 09:46:25 -0500
| Newsgroups | gmane.comp.windows.dotnet.nant.user |
|---|---|
| Message-ID | <[email protected]> |
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:[email protected]] Sent: Thursday, February 23, 2012 9:42 AM To: [email protected] 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.*** ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ NAnt-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nant-users