You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by John Davis <da...@gmail.com> on 2006/07/24 11:29:58 UTC

continue processing build after a failure?

Hello

I have a setup where the top-level build.xml calls build.xml files in
subdirectories via the ant task.  I would like the top-level build.xml
file to continue calling other build.xml files in the subdirectories
in case one directory fails to build.

Is this possible?

-- 
John F. Davis "JD"
http://www.skink.net

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


Re: continue processing build after a failure?

Posted by Andrew Goktepe <an...@gmail.com>.
If you want this behavior globally, you can use the -keep-going option (
http://ant.apache.org/manual/running.html). Beware of dependencies though;
continuing on error is rarely a good idea.

-Andrew


On 7/24/06, John Davis <da...@gmail.com> wrote:
>
> Hello
>
> I have a setup where the top-level build.xml calls build.xml files in
> subdirectories via the ant task.  I would like the top-level build.xml
> file to continue calling other build.xml files in the subdirectories
> in case one directory fails to build.
>
> Is this possible?
>
> --
> John F. Davis "JD"
> http://www.skink.net
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

Re: continue processing build after a failure?

Posted by "Ivan \"Rambius\" Ivanov" <ra...@yahoo.com>.
Hello,

You can use <subant> instead of <ant> to call your
build scripts. According to <subant> docs [1] it
supports failonerror attribute. I think by default it
is true, but you can set it to false.

Regards
Ivan

[1] http://ant.apache.org/manual/CoreTasks/subant.html

--- John Davis <da...@gmail.com> wrote:

> Hello
> 
> I have a setup where the top-level build.xml calls
> build.xml files in
> subdirectories via the ant task.  I would like the
> top-level build.xml
> file to continue calling other build.xml files in
> the subdirectories
> in case one directory fails to build.
> 
> Is this possible?
> 
> -- 
> John F. Davis "JD"
> http://www.skink.net
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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