ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject RE: if condition in ant
Date Tue, 22 Jul 2003 14:27:01 GMT
Why not "kill" after "stopserver"?
The "kill" should handle not existing processes.
And as result of the whole scenario your server is not running any more.

Maybe you have to do the <exec kill> inside a <try><catch> block (see 
AntContrib).


Jan



> -----Original Message-----
> From: Sanjay Goel [mailto:sanjaygoel@despammed.com]
> Sent: Tuesday, July 22, 2003 4:21 PM
> To: user@ant.apache.org
> Subject: if condition in ant
> 
> 
> Hi,
> I have to know if the following can be implemented by ant:
> I want to stop my server using stopserver.bat. I give a 
> timeout of 5 min.
> now if the stopserver command fails, I want to execute 
> another command kill
> which will kill the server process.
> I dont want to run this "kill" command otherwise.
> 
> Any pointers how can we achieve this ?
> TIA
> Sanjay
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message