ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Stillwell <c-chris.stillw...@wcom.com>
Subject Is there any onFail type of capability?
Date Thu, 19 Apr 2001 16:07:26 GMT
I am using the mail task to notify when a build is complete; however, it
doesn't get sent if the build fails.  Is there a way to ensure that the
email is sent regardless of the out come of the build? Here's my build all
target:

  <target name="all" description="Build everything"
          depends="init, compile, jars, javadoc">
    <tstamp>
      <format property="TIME" pattern="hh:mm:ss a"/>
    </tstamp>
    <mail from="newwave@nwvibm00-e1"
          tolist="c-chris.stillwell@wcom.com"
	  subject="NewWave Build ${TODAY}"
	  message="NewWave Build ${TODAY} Completed at ${TIME}."
	  mailhost="****.****.***">
    </mail>
  </target>

Thanks,

Chris


Mime
View raw message