title: Nant "nant.onsuccess" property
body: <p>I have a nant file which does the building of my project. Once the build succeeded, I will use the nant.onsuccess property to send mail. In this nant.onsuccess I will call next batch of targets to build. But I need to send the mail depending on the success or failure of these set of targets that are called from the nant.onsuccess target.</p>
  
  <p>eg:</p>
  
  <pre><code>     &lt;?xml version="1.0" encoding="utf-8" ?&gt; 
       &lt;project name="Build.build" default="default"&gt;
       &lt;property name="mail.mailhost" value="x"/&gt;
       &lt;property name="mail.from" value="y"/&gt;
       &lt;property name="mail.to" value="z"/&gt;
       &lt;target name="default" description="Just like that"&gt;
        &lt;echo message="Succeeded"/&gt;
        &lt;echo message="Succeeded"/&gt;
        &lt;property name="nant.onsuccess" value="suc"/&gt;
       &lt;/target&gt;
  
       &lt;target name="suc" description="Just like that"&gt;
         &lt;echo message="I am called"/&gt;
         &lt;echo message="in success part"/&gt;
         &lt;property name="nant.onsuccess" value="here"/&gt;
         &lt;call target="testing"/&gt;
       &lt;/target&gt;
       &lt;target name="testing"&gt;
         &lt;echo message="I ammmmmmmmmm"/&gt;
         &lt;property name="nant.onsuccess" value="here"/&gt;
       &lt;/target&gt;
       &lt;target name="here"&gt;
       &lt;echo message="I should not be called"/&gt;
       &lt;/target&gt;
  
  
     &lt;target name="nant.onfailure"&gt;
    &lt;if test="${string::get-length(mail.to) &gt; 0}"&gt;
    &lt;mail mailhost="${mail.mailhost}" from="${mail.from}" tolist="${mail.to}"
      subject="Test mail on ${environment::get-variable('COMPUTERNAME')}."&gt;
      Note: this is ignored.
     &lt;/mail&gt;
     &lt;/if&gt;
    &lt;/target&gt;
  &lt;/project&gt;
  
     The target "here" should be called depending on whether the target "testing" is succeeded or not.
  </code></pre>
  
  <p>Please let me know how do i achieve it.</p>
  
  <p>Thanks,
  Priya</p>