This simple tip shows you how to stop and start the Tomcat server directly from an Ant script on the Windows system. Here are the two targets to do so:
<!-- start Tomcat target -->
Now, you can call the targets: