Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 61518 invoked from network); 24 Sep 2003 23:54:43 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 24 Sep 2003 23:54:43 -0000 Received: (qmail 3421 invoked by uid 500); 24 Sep 2003 23:54:18 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 3391 invoked by uid 500); 24 Sep 2003 23:54:17 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 3374 invoked from network); 24 Sep 2003 23:54:17 -0000 Received: from unknown (HELO smtp.cortexebusiness.com.au) (203.174.140.214) by daedalus.apache.org with SMTP; 24 Sep 2003 23:54:17 -0000 Received: (from daemon@localhost) by smtp.cortexebusiness.com.au (8.10.0/8.10.0) id h8ONsMt28189 for ; Thu, 25 Sep 2003 09:54:22 +1000 (EST) Received: from corey.int.cortexebusiness.com.au(192.168.1.6) via SMTP by ctx00., id smtpdAAA0Baqc3; Thu Sep 25 09:54:21 2003 Received: (from daemon@localhost) by corey.int.cortexebusiness.com.au (8.10.0/8.10.0) id h8ONsMI17455 for ; Thu, 25 Sep 2003 09:54:22 +1000 (EST) Received: from kooky.int.cortexebusiness.com.au(192.168.1.48) via SMTP by corey.int.cortexebusiness.com.au, id smtpdAAACHaafI; Thu Sep 25 09:54:13 2003 From: Conor MacNeill To: "Ant Users List" Subject: Re: errors in tasks Date: Thu, 25 Sep 2003 09:54:07 +1000 User-Agent: KMail/1.5 References: <1E0EF0D249F6504FAB1B26EA699E3C1D1B7B40@mail.kaptechwest.com> In-Reply-To: <1E0EF0D249F6504FAB1B26EA699E3C1D1B7B40@mail.kaptechwest.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200309250954.07629.conor@cortexebusiness.com.au> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Thu, 25 Sep 2003 09:27 am, Alan Bram wrote: > I love the task. I use it in the conventional way: > > > > > > > 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. > In addition to try-catch mentioned, you can use new features of in Ant 1.6 to give you more control in an unattended build. now supports a timeout attribute which will terminate the task execution after a given amount of time. Also a failonany attribute will fail the task if any of the parallel tasks fails without waiting for all tasks to complete. Note that any early termination of the task will not forcibly halt the remaining threads - these continue to run until they either end naturally or the System.exit() cleans the whole lot up. Finally also supports a nested element to allow unattended servers to be started in the build. Conor --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org