Yes, you are correct. This is a bug that has been fixed in the nightly builds (it affects both the <if> and <ifnot> tasks). This fix will be included in the next release.
If you would like you can test the nightly build to see if your problem goes away. http://nant.sourceforge.net/nightly/builds/ ----- Original Message ----- From: "Sayah, Jeff (HHoldings, CALMS/IT)" <[EMAIL PROTECTED]> To: "'Ian MacLean'" <[EMAIL PROTECTED]>; "Sayah, Jeff (HHoldings, CALMS/IT)" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, September 26, 2003 9:29 AM Subject: RE: [Nant-users] Fail Task > Ian, > > Since I sent My original message I have been digging into my build process > trying to determine what is not working and I've figured out that it is not > the nested call but something I'm doing inside the nested call. That said > it still seems to behave in a way I would not expect. > > In the IF NOT Task if failonerror="false" the subsequent fail statement will > not fail the build even though the fail statement is executed in the ifnot > statement. I would have thought that the fail statement would execute and > fail the build. > > <ifnot > propertyexists="${localpath}\${debugmergefolder}\${verifyfilename}.present" > propertytrue="${localpath}\${debugmergefolder}\${verifyfilename}.present" > failonerror="false"> > > <fail message="expected inventory items were not found." > failonerror="true"/> > > </ifnot> > > > Thanks > Jeff > > -----Original Message----- > From: Ian MacLean [mailto:[EMAIL PROTECTED] > Sent: Friday, September 26, 2003 11:53 AM > To: Sayah, Jeff (HHoldings, CALMS/IT) > Cc: '[EMAIL PROTECTED]' > Subject: Re: [Nant-users] Fail Task > > > Jeff, > the fail task should termintate the build. I just ran a test and the > following build snippet: > > <target name="target1"> > <echo message="in target1" /> > <call target="target2"/> > </target> > <target name="target2"> > <echo message="in target2" /> > <call target="target3"/> > <echo message="still in target2 - should have failed" /> > </target> > > <target name="target3"> > <echo message="in target3" /> > <call target="failure"/> > <echo message="still in target3 - should have failed" /> > </target> > > <target name="failure"> > <echo message="in failure target" /> > <fail /> > </target> > > produces the following output: > target1: > > [echo] in target1 > > target2: > > [echo] in target2 > > target3: > > [echo] in target3 > > failure: > > [echo] in failure target > > BUILD FAILED > > Which is what you expect - ie if fails immediatly after the fail task is > executed. Could you post the build script that exhibits the behaviour > you describe ? > > Ian > > >Greetings, > > > >I am attempting to use the fail task within a nested target... > > > >Target A Calls > > Target B Calls > > Target C > > Within Target C I Issue a Fail.... > > > >Target B & A continue to execute successfully and in fact all subsequent > >build steps execute to completion. > > > > > >Is this the behavior I should expect? If so what is the exact purpose of > >the fail task. > > > > > >This communication, including attachments, is for the exclusive use of > >addressee and may contain proprietary, confidential or privileged > >information. If you are not the intended recipient, any use, copying, > >disclosure, dissemination or distribution is strictly prohibited. If > >you are not the intended recipient, please notify the sender > >immediately by return email and delete this communication and destroy all > copies. > > > > > > > >------------------------------------------------------- > >This sf.net email is sponsored by:ThinkGeek > >Welcome to geek heaven. > >http://thinkgeek.com/sf > >_______________________________________________ > >Nant-users mailing list > >[EMAIL PROTECTED] > >https://lists.sourceforge.net/lists/listinfo/nant-users > > > > > > > > > This communication, including attachments, is for the exclusive use of > addressee and may contain proprietary, confidential or privileged > information. If you are not the intended recipient, any use, copying, > disclosure, dissemination or distribution is strictly prohibited. If > you are not the intended recipient, please notify the sender > immediately by return email and delete this communication and destroy all copies. > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nant-users mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/nant-users > > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users