title: Ant equivalent of nant.onsuccess / nant.onfailure
body: <p>NAnt has two <a href="http://nant.sourceforge.net/release/latest/help/fundamentals/properties.html#built-in-properties" rel="nofollow noreferrer">built-in properties</a>, <code>nant.onsuccess</code> and <code>nant.onfailure</code>, for specifying tasks to run on success and failure respectively.</p>
  
  <p>Is there an equivalent in Ant?</p>