Minimalistic Ant script for Tomcat war file deployment.
This script first does a
mvn clean and
mvn install on the defined maven project. It then connects to the provided server, stops the running Tomcat, uploads the newly created .war file to the Tomcat’s webapp directory and starts the Tomcat again.
How to use
- Adjust the property values in
ant/build.xmlto your needs
This script can be extended to support backing up any existing .war files, log files etc.
Alternative execution of
mvn clean install
or under Windows