I have a few external programs that have several possible return codes each, only 1 of which in each case means failure. However, NAnt itself fails if any return code from an exec task is not 0, even if failonerror=false for that task (Which in turn causes my cruise control server to report a broken build). This is what I'm trying to do:
<exec failonerror="false" resultproperty="nunit.exit.code" program="nunit-console.exe" basedir="NUnit\bin" commandline="bin\Debug\Tests.dll /xml=..\..\NUnit\NUnitConsoleOutput.xml /exclude:ExpectedFailure_SqlServer_Standard,ExpectedFailure_All /config=bin\Debug\Tests.dll.config" verbose="true"/> <fail if="${nunit.exit.code == '2'}">NUnit return code was 2, indicates a FAILURE</fail> As you cans see I'd prefer to capture the return code myself and fail based on that. Is there any way to tell NAnt to ignore return codes altogether? And please don't tell me to use a NUnit/NUnit2 task instead; there are about 100 reasons why I cant! Thanks. _________________________________________________________________ Stephen Smyth Product Engineer in Test www.kalido.com 1 The Strand London WC2N 5AB United Kingdom Direct: +44 (0) 20 7484 2334 Mobile: +44 (0) 79 6092 3960 Fax: +44 (0) 20 7484 3300 Email : [EMAIL PROTECTED] ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nant-users mailing list Nant-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users