ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivan Ivanov <rambiusparkisan...@yahoo.com>
Subject Re: ant task fails
Date Wed, 23 Nov 2005 15:43:23 GMT
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 <andrei@netrom.ro> 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:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
> 
> 



		
__________________________________ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com

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


Mime
View raw message