ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guan, Kelly" <>
Subject RE: start tomcat in ant
Date Tue, 09 Oct 2001 02:26:45 GMT
<parallel> works fine to allow to start up a tomcat server on a separate
thread, and ant can continue to send test requests to tomcat. However,
if you call 'shutdown' to stop the tomcat running in another thread, the
returned value from tomcat seems to be: 
exec returned :1
exec returned :1
so  at the end of the build, even everything is performed fine, Ant give
BUILD FAILED message, because exec for shut down the server returned 1. 
I suspect it may caused by tomcat didn't stop normally.
<exec dir="${build.tomcat.cmd}" executable="shutdown"  os="Windows 2000"
failonerror="true" vmlauncher="false"/>
but I didn't get any error message from stop tomcat script call.
anyone has seen the same thing?

-----Original Message-----
From: Bevan Arps []
Sent: Monday, October 08, 2001 5:56 PM
Subject: RE: start tomcat in ant

At 20:18 8/10/2001 -0400, you wrote:

These three methods of starting tomcat work for me, but every single one
causes ant to block while tomcat is running.  I am trying to get ant to
start tomcat, and continue running.

Ant won't start a process and abandon it - a search of the mailing list
archives should have brought this discussion up.

You may be able to use the "parallel" task (introduced in v1.4) to run
the server in one thread while another interrogates it, however.



"Programming is an Art Form that Fights Back"

Bevan Arps ( <> )
Senior OO Analyst, ACT Financial Systems

This communication  is confidential  to ACT  Financial  Systems  (Asia
Pacific)  and is intended for  use only by the  addressee.   The  views
and opinions  expressed in  this email  are the senders  own and do not
represent  the  views  and  opinions of  ACT  Financial  Systems  (Asia

View raw message