1: <target name="install" description="Install application in Tomcat" depends="packWar">
2: <deploy url="${tomcat.manager.url}"
3: username="${tomcat.manager.username}"
4: password="${tomcat.manager.password}"
5: path="/${webapp.name}" war="${warFilePath}" />
6: </target>
7:
8: <target name="remove" description="Remove application from Tomcat">
9: <undeploy url="${tomcat.manager.url}"
10: username="${tomcat.manager.username}"
11: password="${tomcat.manager.password}"
12: path="/${webapp.name}" />
13: </target>
14:
15: <target name="reload" description="Reload application in Tomcat">
16: <reload url="${tomcat.manager.url}"
17: username="${tomcat.manager.username}"
18: password="${tomcat.manager.password}"
19: path="/${webapp.name}" />
20: </target>
21:
22: <target name="start" description="Start Tomcat application">
23: <start url="${tomcat.manager.url}"
24: username="${tomcat.manager.username}"
25: password="${tomcat.manager.password}"
26: path="/${webapp.name}" />
27: </target>
28:
29: <target name="stop" description="Stop Tomcat application">
30: <stop url="${tomcat.manager.url}"
31: username="${tomcat.manager.username}"
32: password="${tomcat.manager.password}"
33: path="/${webapp.name}" />
34: </target>
35:
36: <target name="list" description="List Tomcat applications">
37: <list url="${tomcat.manager.url}"
38: username="${tomcat.manager.username}"
39: password="${tomcat.manager.password}" />
40: </target>