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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to