Hi Chris,

I don't know what your "fail" target does, but what bob mentionened 
before was using the <fail> task:
http://nant.sourceforge.net/release/latest/help/tasks/fail.html

<target name="set_nant_failure">
   <fail message="build failed" if="${(not project1_ok) or (not 
project2_ok)}" />
</target>

hth
Dominik




Am 19.03.2012 23:00, schrieb Chris Fouts:
> To further explain, here’s how I call my evaluate and call my <fail> target
>
> <target name="set_nant_failure">
>
> <call target="fail" if="${(not project1_ok) or {not project2_ok)}" />
>
> </target>
>
> The project1_ok and project2_ok are bools that are set CORRECTLY by
> evaluating resultproperty values earlier in script.
>
> *From:*Chris Fouts [mailto:chris.fo...@caemilusa.com]
> *Sent:* Monday, March 19, 2012 5:50 PM
> *To:* nant-users@lists.sourceforge.net
> *Subject:* Re: [NAnt-users] Nant property passed to CC.NET for pass/fail
> condition?
>
> I thought I had this figured out.
>
> I see that I’m calling my <fail> task in my Nant script. I see it in my
> ccnet console
>
> fail:
>
> [echo] ******** BUILD FAILED! ******
>
> BUILD SUCCEEDED - 1 non-fatal error(s), 2 warning(s)
>
> Total time: 25.8 seconds.
>
> But how come ccnet still says “BUILD SUCCEEDED”?
>
> -chris
>


-- 
The answer to the great question of life,
the universe and everything is 42 (Douglas Adams)

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to