Using the Fail Task Conditionally
"Macdiarmid, James D." <[email protected]> Wed, 13 Jul 2011 13:07:03 -0400
| Newsgroups | gmane.comp.windows.dotnet.nant.user |
|---|---|
| Message-ID | <F7A8C27240D1154593A0F16214BF0BBD02F24C83@0015-its-exmb14.us.saic.com> |
I'm using the "if" task in my build script to test a condition. If the condition is true, I want to send an email out then fail the build. Does it matter where I put the "fail" task? For example, should I put my "Mail" task first, then the "fail" task, or fail first then put the "Mail" task? <If> <Mail> </Mail> <fail message=""></fail> </if> Or <If> <fail message=""></fail> <Mail> </Mail> </if> Thanks, Jim ------------------------------------------------------------------------------ AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on "Lean Startup Secrets Revealed." This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev _______________________________________________ NAnt-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nant-users