Hi.
In the airline sample app, there are several useful-looking ant/tomcat commands, with which you can deploy your app to tomcat from ant. One that I can't find, though, is a shutdown target.
This tomcat-launch target works for me (again, taken from the airline sample):
This tomcat-shutdown target, that I wrote returns a "BUILD SUCCESSFUL", but doesn't shutdown tomcat:Code:<target name="tomcat-launch" depends="tomcat.init" description="Launch the tomcat server process"> <exec dir="${tomcat.dir}/bin" executable="startup.bat" spawn="true" vmlauncher="false"> <env key="JAVA_OPTS" value="${tomcat.javaopts}" /> </exec> </target>
Anyone know why not, and what I need to do to get it to work?Code:<target name="tomcat-shutdown" depends="tomcat.init" description="Shutdown the tomcat server process"> <exec dir="${tomcat.dir}/bin" executable="shutdown.bat" spawn="true" vmlauncher="false"> <env key="JAVA_OPTS" value="${tomcat.javaopts}" /> </exec> </target>
I've googled around on this a bit, but haven't found anything signif yet.
Ben


Reply With Quote

