<!-- - - - - - - - - - - - - - - - - -
target: start tomcat
- - - - - - - - - - - - - - - - - -->
<target name="start.tomcat">
<java jar="${tomcat.home}/bin/bootstrap.jar" fork="true">
<jvmarg value="-Dcatalina.home=${tomcat.home}" />
</java>
</target>
<!-- - - - - - - - - - - - - - - - - -
target: stop tomcat
- - - - - - - - - - - - - - - - - -->
<target name="stop.tomcat">
<java jar="${tomcat.home}/bin/bootstrap.jar" fork="true">
<jvmarg value="-Dcatalina.home=${tomcat.home}" />
<arg line="stop" />
</java>
</target>
<!-- - - - - - - - - - - - - - - - - -
target: debug tomcat
- - - - - - - - - - - - - - - - - -->
<target name="debug.tomcat">
<java jar="${tomcat.home}/bin/bootstrap.jar" fork="true">
<jvmarg value="-Dcatalina.home=${tomcat.home}" />
<jvmarg value="-noverify" />
<jvmarg value="-javaagent:${jrebel.path}" />
<jvmarg value="-Xdebug" />
<jvmarg value="-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n" />
</java>
</target>
<target name="war" depends="compile">
<war encoding="gbk" destfile="examination.war" webxml="WebContent/WEB-INF/web.xml">
<fileset dir="WebContent">
<include name="**/*.*"/>
</fileset>
</war>
</target>
</project>