ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: How to force ant to continue after build failure?
Date Mon, 20 Nov 2000 13:19:08 GMT
Jay Glanville <> wrote:

> In my build file, I want to mail the results of the build to the
> loadbuild manager regardless of success or fail.

Jay, take a look at

Basically, attach a build listener and send your mail in
buildFinished. To closer model

>   <target name="compile" depends="init" >
>     <recorder file="compile.output" recording="on" />
>     <javac .../>
>     <recorder file="compile.output" recording="off" />
>   </target>

The build listener could send its mail either in buildFinished or when
the task with recording="off" gets executed - whatever happens first.

> Is there a "magic" property that I can set to force ant to continue
> after build failures?

Adding some "make -k" like functionality to Ant has been on the TODO
list for quite some time now, but it's quite far towards the end (of
my private version).

> PS: I've searched the e-mail archives, but I've found no answer to
> my question, only the same question asked by other people.

Given that there is a FAQ entry for the functionality you want (feel
free to ad a version using instead of javamail
if you happen to write one BTW, yet another point from my TODO list)

I'm sure, I've pointed others to the FAQ on this before - and Will has
sent his code to this group, so you must have searched for the wrong
keywords 8-).


View raw message