jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Lenz <cml...@gmx.de>
Subject Re: test.resin.20
Date Fri, 20 Dec 2002 14:58:35 GMT
Hi Wolfgang,

if I understand you correctly, you want to start Resin from the Ant 
script, and keep it running even after Ant has finished.

This is AFAIK not currently possible with Ant: you cannot start a 
process that lives longer than the execution of the Ant script. 
Furthermore, without using the <parallel>/<sequential> tasks (or 
Cactus's <runservertests>), starting a server process such as Resin will 
block the Ant script ad infinitum, because will wait for the process to 
terminate.

I've had the same problem some time ago, I really hope Ant will support 
this kind of task in some future version.

-chris

Wolfgang Egger wrote:
> Servus,
> 
> For some reasons, I have to start and stop the servletcontainer (resin)
> from within an ant script. The targets that do that starting and stoping
> must terminate after doing their job. From another mailinglist, I became
> the hint, that cactus has somthing, that would fullfill my wishes: 
> 
> 
> "The Cactus project provides an Ant task designed for your scenario.
> Take a look at the runservertests task over here:
> http://jakarta.apache.org/cactus/howto_ant_cactus.html"
> <<<
> 
> I have palyed a little with that, the test.resin.20 runs fine, but it is
> only _nearly designed for my scenario; 
> So I tried to extract the start.resin.20 and stop.resin.20 targets from
> the examples - build and put it into my own build. But I did something
> wrong. If I call start.resin.20 resin hangs off while starting.
> 
> Has anyone any hints or ideas, how to isolate this target, so that I can
> start and stop resin within ant and that e.g after "ant start.resin"
> resin will be started and ant is terminating with BUILD SUCCESSFULL?
> 
> Have a nice an peacefully weekend!
> 
> Wolfgang
> 
> --
> To unsubscribe, e-mail:   <mailto:cactus-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:cactus-user-help@jakarta.apache.org>
> 
> 



--
To unsubscribe, e-mail:   <mailto:cactus-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:cactus-user-help@jakarta.apache.org>


Mime
View raw message