wood burning stoves*
The moose likes Ant, Maven and Other Build Tools and the fly likes Starting and Stopping Tomcat Server Using Ant Script Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Starting and Stopping Tomcat Server Using Ant Script" Watch "Starting and Stopping Tomcat Server Using Ant Script" New topic
Author

Starting and Stopping Tomcat Server Using Ant Script

Venkata Sirish
Ranch Hand

Joined: Apr 09, 2007
Posts: 112
hi ,
I want to start and stop Tomcat server using Ant Script ... Can anyone help me... Please send me tha code if possible......
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Tomcat doesn't supply any Ant tasks. But you can do it with the existing tasks Ant supplies. You can use the <exec /> task to run a command.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39547
    
  27
Individual web apps can be started, stopped and reloaded by the Tomcat Manager Ant tasks.


Ping & DNS - updated with new look and Ping home screen widget
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Starting and Stopping Tomcat Server Using Ant Script
 
Similar Threads
Precompile of JSPs using Ant on weblogic6.1
how to compile
Tomcat Server and axis application --prob. starting context
Ant script to start/stop the tomcat server in the remote linux machine
Ant script to shutdown weblogic8.1 server