wsunarko (1) [Avatar] Offline
Have a task as the following
<target name="deploy" depends="task1, task2">
when task2 fails with error msgs, the output for deploy displays "BUILD SUCESSFULL". How can I display it as "BUILD FAILED"?
task1 & task2 are custom java classes which
throw new BuildException(exception);
Thank you very much for any input
ErikHatcher (211) [Avatar] Offline
Re: how to display the build message
You're saying "task' when you really mean "target". If a BuildException is thrown from a task, the build will fail - unless you've done something to prevent that (for example, the new -k switch will keep going on a failure).

Please bring this issue over the ant user e-mail list, as it is the most appropriate spot for this discussion.