ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From achim.fel...@amd.com
Subject How to execute second task of target if first one fails?
Date Fri, 02 Nov 2001 00:24:49 GMT
Is there an easy way to tell ant to execute the second part
of a task even if the first part failed?
I'd like to send out an email especially when the build goes wrong.

Thanks in advance,
Achim

=======================================
<target name="myproject">
  <ant antfile="myproject.xml" 
    output="myproject.log">
    <property name="pvcslabel" value="${pvcslabel}"/>
  </ant> 
  <mail from="fbdaemon" 
    tolist="developer"
    files="${fb.log.dir}/build.epr.log"
    subject="Result of EPR Build"
    mailhost="smtphost"/>
</target>




--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message