ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <>
Subject Re: Echo message when build fail
Date Tue, 09 Oct 2007 09:26:06 GMT
nissea wrote:
> Hi 
> I would like to echo out a message when i command fails, my code is as
> follows: 
> <exec executable="cmd" failonerror="true" > 
>    <arg value="xxx"/> 
> </exec> 
> When this command fails the build fails, but I would like to echo out a
> message to the user about what happend. How do I do this? thank you 

1. please ask this kind of question on Ant's user mailing list. There 
are more people on it.

2. get the exit value of the exec, pass it in to a conditional <fail if> 

Steve Loughran        
Author: Ant in Action 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message