You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Mehmet Birgi <me...@otego.com> on 2002/07/08 11:04:04 UTC
Re: Stopping and Starting Tomcat as part of an Ant script
Great, I've been looking for a way to do this for some time now. I tried
out your snippets, but when I start tomcat from an ant script, the rest
of the script doesn't get executed (the only thing I've changed: I've
commented out the catalina_base line, as I don't need multiple instances).
Can anybody help?
Thanks,
Memo
Dominic Clay wrote:
> Hi,
>
> If anyone is interested, I found this snippet which works!!!
> You can replace the arg element with 'start' to 'start' Tomcat.
>
> Hope this is useful to someone!
>
> Dominic
>
> <!--
> ========================================================================
> Stop Tomcat 4.0
> ========================================================================
> -->
> <target name="stop.tomcat.40">
>
> <java classname="org.apache.catalina.startup.Bootstrap" fork="yes">
> <jvmarg value="-Dcatalina.home=${tomcat.home.40}"/>
> <jvmarg value="-Dcatalina.base=${target.tomcat40.dir}"/>
> <arg value="stop"/>
> <classpath>
> <fileset dir="${tomcat.home.40}">
> <include name="bin/bootstrap.jar"/>
> </fileset>
> </classpath>
> </java>
>
> </target>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>