ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Donald Strong" <dstr...@agentissoftware.com>
Subject RE: errors in <parallel> tasks
Date Wed, 24 Sep 2003 23:31:19 GMT

Use the try/catch/finally task(s) from Ant-contrib.
Put the shutdown in the finally task.

Works like a charm.

Donald.

> -----Original Message-----
> From: Alan Bram [mailto:ABram@kaptechwest.com]
> Sent: Thursday, 25 September 2003 9:28 AM
> To: user@ant.apache.org
> Subject: errors in <parallel> tasks
> 
> 
> I love the <parallel> task. I use it in the conventional way:
> 
>   <parallel>
>     <run my J2EE server>
>     <wait for server to come up, run tests, then shut down server>
>   </parallel>
> 
> What troubles me is that if anything goes wrong, and I don't successfully reach and 
> execute the "shut down" part, the server never finishes, and thus my build hangs forever.

>  There doesn't seem to be any way to interrupt the "run server" thread from the failing

> other thread.
> 
> Am I missing something here?
> 
> I care about this because I'm setting up Cruise Control on this build/test cycle.  Maybe

> I should also ask the Cruise Control community.
> 
> Cheers,
>  - arb
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org

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


Mime
View raw message