ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <ste...@apache.org>
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> 
task

-- 
Steve Loughran                  http://www.1060.org/blogxter/publish/5
Author: Ant in Action           http://antbook.org/

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


Mime
View raw message