Re: Testing if Tomcat is running

2009-05-28 Thread alsen
t; but when it is executed and Tomcat is already down it obviously throws an > exception. > > Could anyone suggest how I could test whether Tomcat is running, and > execute > this task only when it is? > > Thanks. > > -- View this message in context: http://www.nabbl

AW: Testing if Tomcat is running

2009-05-28 Thread Jan.Materne
Jan >-Ursprüngliche Nachricht- >Von: Roman Sokolyuk [mailto:romsok.t...@gmail.com] >Gesendet: Freitag, 29. Mai 2009 04:31 >An: user@ant.apache.org >Betreff: Testing if Tomcat is running > >Hi, >Ant: 1.7.1 >OS: Mac OS X Leopard >Java: 1.5.0_16 >Tomcat:

Testing if Tomcat is running

2009-05-28 Thread Roman Sokolyuk
Hi, Ant: 1.7.1 OS: Mac OS X Leopard Java: 1.5.0_16 Tomcat: 6 I am using the following ant tasks to stop my Tomcat: but when it is executed and Tomcat is already down it obviously throws an exception. Could anyone suggest how I could test whether Tomcat is running, and execute this ta