ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <>
Subject Re: exit code
Date Tue, 15 Apr 2003 20:17:44 GMT
Donal Quinlan wrote:

> We have had failonerror set to false for a long time. What we want to do 
> now is make the build fail if the exit code is anything other than 0 or 
> -1. Any ideas? I know how to do this if I can capture the exit code, but 
> I do not know how to capture the exit code. We are using ant 1.5.2

There is some attribute of <exec> that lets you name a property to stick 
the exit code in, your test is simply a <condition> and then a <fail> 
from that...

View raw message