Integrated r2021: stop target for tomcat created

git-svn-id: https://svn.libreccm.org/ccm/trunk@281 8810af33-2d31-482b-a856-94f89814c4df
master
pb 2009-11-02 10:22:13 +00:00
parent b1dc386328
commit 073aeea9c1
1 changed files with 14 additions and 1 deletions

View File

@ -54,7 +54,7 @@
todir="${app.server.home.dir}/lib" preservelastmodified="true"/> todir="${app.server.home.dir}/lib" preservelastmodified="true"/>
</target> </target>
<target name="start"> <target name="start" description="Start the Tomcat server">
<if> <if>
<equals arg1="${app.server.debug.on}" arg2="true" /> <equals arg1="${app.server.debug.on}" arg2="true" />
<then> <then>
@ -97,4 +97,17 @@
</java> </java>
</target> </target>
<target name="stop" description="Stop the Tomcat server">
<java classname="org.apache.catalina.startup.Bootstrap" fork="yes">
<!-- standard parameter to Tomcat operation -->
<sysproperty key="catalina.home" value="${app.server.home.dir}" />
<sysproperty key="catalina.base" value="${app.server.home.dir}" />
<sysproperty key="catalina.config" value="file:///${app.server.conf.dir}/catalina.properties" />
<classpath>
<pathelement path="${app.server.home.dir}/bin/bootstrap.jar" />
</classpath>
<arg value="stop"/>
</java>
</target>
</project> </project>