Restarting Tomcat via Ant

2005-08-08 Thread itteerde (sent by Nabble.com)

Is there any way I can restart a remote Tomcat using an Ant task? I googled a 
while and even found some sources but they were about HttpClient abusing the 
manager application and exec calling the batches via net shares.

Anything better than the ManagerApp abuse?

thx in advance
--
Sent from the Tomcat - User forum at Nabble.com:
http://www.nabble.com/Restarting-Tomcat-via-Ant-t207149.html#a577719


RE: Restarting Tomcat via Ant

2005-08-08 Thread Raghupathy,Gurumoorthy
project name=Learning default=reloadContext basedir=.

target name=reloadContext
get dest=stop.txt
src=http://localhost:8080/manager/stop?path=/Learning; 
username=adminUserName password=adminPassword/
loadfile property=STOPOUTPUT
srcfile=stop.txt/loadfile
echo${STOPOUTPUT}/echo
delete file=stop.txt/delete

get dest=start.txt
src=http://localhost:8080/manager/start?path=/Learning; 
username=adminUserNAme password=adminPassword/
loadfile property=STARTOUTPUT
srcfile=start.txt/loadfile
echo${STARTOUTPUT}/echo
delete file=start.txt/delete  
/target

/project


The only thing you need to change is the
http://localhost:8080/manager/stop?path=/Learning; of it ...

So if you want to do for www.manik.com for context /Learning

Then it will be http://www.manik.com/manager/stop?path=/Learning and 


if you want to do for www.guru.com for context /Learning

Then it will be http://www.guru.com/manager/stop?path=/Learning 


Hope you find this useful 


-Original Message-
From: itteerde (sent by Nabble.com) [mailto:[EMAIL PROTECTED] 
Sent: 08 August 2005 15:43
To: tomcat-user@jakarta.apache.org
Subject: Restarting Tomcat via Ant



Is there any way I can restart a remote Tomcat using an Ant task? I googled
a while and even found some sources but they were about HttpClient abusing
the manager application and exec calling the batches via net shares.

Anything better than the ManagerApp abuse?

thx in advance
--
Sent from the Tomcat - User forum at Nabble.com:
http://www.nabble.com/Restarting-Tomcat-via-Ant-t207149.html#a577719

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]