4、build.xml & build.properties
<!-- The build.xml -->
<project name="test" default="about" basedir=".">
<description>
The build.xml of this project, used by ant. Do NOT modify this file unless mastering ant.
</description>
<property file="build.properties" />
<taskdef name="start" classname="org.apache.catalina.ant.StartTask">
</taskdef>
<taskdef name="stop" classname="org.apache.catalina.ant.StopTask">
</taskdef>
<target name="reload" description="Reload application in Tomcat">
<reloadurl="${tomcat.manager.url}" username="${tomcat.manager.username}"password="${tomcat.manager.password}" path="/${webapp.name}" />
</target>
<target name="start" description="Start Tomcat application">
<starturl="${tomcat.manager.url}" username="${tomcat.manager.username}"password="${tomcat.manager.password}" path="/${webapp.name}" />
</target>
<target name="stop" description="Stop Tomcat application">
<stopurl="${tomcat.manager.url}" username="${tomcat.manager.username}"password="${tomcat.manager.password}" path="/${webapp.name}" />
</target>
<target name="about" depends="" description="">
<description>
The build.xml of this project, used by ant. Do NOT modify this file unless mastering ant.
</description>
</target>
</project>