I tried the following Chuck,

<target name="stop-tomcat">

     <exec dir="${TOMCAT}/bin/" executable="shutdown.sh" />

</target>
 but it tells me that the script cannot be found



On Thu, Apr 2, 2009 at 2:21 PM, Caldarale, Charles R <
chuck.caldar...@unisys.com> wrote:

> > From: Mighty Tornado [mailto:mighty.torn...@gmail.com]
> > Subject: Restarting Tomcat from Ant
> >
> > Is there a way to also restart the server
> > from Ant?
>
> Why don't you just use the startup and shutdown scripts that come with
> Tomcat?  If you want to call them from within an ant script, use the <exec>
> task.
>
>  - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you received
> this in error, please contact the sender and delete the e-mail and its
> attachments from all computers.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

Reply via email to