Hello,
Ant-Contrib[1] has <trycatch> task:
<target name="cc">
<echo message="Running cc .... "/>
<trycatch>
<try>
<antcall target="test-xejb"/>
</try>
<finally>
<antcall target="mail"/>
</finally>
<trycatch>
</target>
In this way "mail" target will always be executed.
However, this is not very "Ant-ish". What is the aim
of "mail" target. Does it sends the results of the
build process? If so, you can use MailLogger[2]
instead your "mail" target. See [3] for more
information on Ant's loggers and listeners.
Regards
Ivan
[1]http://ant-contrib.sourceforge.net/
[2]http://ant.apache.org/manual/listeners.html#MailLogger
[3]http://ant.apache.org/manual/listeners.html
--- Andrei <[EMAIL PROTECTED]> wrote:
> I have the following ant target:
>
> <target name="cc">
> <echo message="Running cc .... "/>
> <antcall target="test-xejb"/>
> <echo message="To see if it arrives here."/>
> <antcall target="mail"/>
> </target>
>
> if the test-xejb task fails the echo message and
> mail target are never
> runned. How can i make to always run all task
> following a failing task?
>
> Kind regards,
> Andrei
>
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
__________________________________
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]