tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Niven <John.Ni...@marcat.com>
Subject RE: Stopping and Starting Tomcat as part of an Ant script
Date Mon, 17 Jun 2002 13:26:47 GMT
> -----Original Message-----
> From: Dominic Clay [mailto:dominic.clay@europrospectus.com] 
> Sent: 17 June 2002 14:12
> To: 'Tomcat Users List'
> Subject: RE: Stopping and Starting Tomcat as part of an Ant script
> 
> 
> Thanks I will look at that, however I am currently using Tomcat 4.03.
> 

Doesn't matter...

> Any ideas out there for stoping Tomcat 4.03 from Ant?
> 

The .jar with Tomcat 4.1.x will work with Tomcat 4.0.x - IIRC I've used it
with 4.0.3.

Good luck,
John

 --
John Niven
Please reply through mailing list

> Regards,
> Dominic
> 
> -----Original Message-----
> From: John Niven [mailto:John.Niven@marcat.com]
> Sent: 17 June 2002 12:59
> To: 'Tomcat Users List'
> Subject: RE: Stopping and Starting Tomcat as part of an Ant script
> 
> 
> > -----Original Message-----
> > From: Dominic Clay [mailto:dominic.clay@europrospectus.com]
> > Sent: 17 June 2002 12:16
> > To: 'Tomcat Users List'
> > Subject: Stopping and Starting Tomcat as part of an Ant script
> > 
> > 
> > Hi,
> > 
> > During the development process in a Tomcat Webapp.  I want to
> > be able to start and stop Tomcat from my Ant build.xml
> > 
> > I am developing on a Win2k machine.
> > 
> > I have written a build.xml target but it is failing.
> > This is the script I have written
> > *********************************
> > <target name="stopTomcat" >
> >        <java jar="C:\Apache\Tomcat4\bin\bootstrap.jar" fork="yes">
> >          <arg value="stop"/>
> >          <arg value="C:\Apache\Tomcat4\bin"/>
> > 	   <!-- the following part makes no difference-->	
> >          <classpath>
> >            <pathelement location="C:\\Apache\\Tomcat4\\bin"/>
> >            <pathelement location="${classpath}"/>
> >          </classpath>
> >        </java>
> > </target>
> 
> Dominic
> 
> Check out the catalina-ant.jar that comes with recent 
> (4.1.x?) versions of Tomcat - you'll need to install that to 
> %ANT_HOME%/lib.  Secondly, check out the manager-app-HOWTO 
> documentation (again, with recent Tomcats) - Craig's written 
> an excellent description of controlling Tomcat from your build file.
> 
> Best of luck
> John
> 
>  --
> John Niven
> Please reply through mailing list
> 
> 
> > 
> > I have tried with or without the classpath section and no
> > difference The error is: '..\myprojects\common\lib does not 
> > exist' This is absolutely true ;) , but why is it looking for 
> > this dir?
> > 
> > Can anybody suggest the way I should be doing this..?
> > 
> > Dominic
> > 
> 
> --
> To unsubscribe, e-mail: 
> <mailto:tomcat-user-> unsubscribe@jakarta.apache.org>
> For 
> additional commands, 
> e-mail: <mailto:tomcat-user-help@jakarta.apache.org>
> 

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message