I know Startup and Shutdown have been covered ad nausaeum Start tomcat with Ant build.xml
<target name="start" > <exec executable="${tomcat.home}/bin/startup.bat" os="Windows 2000" /> </target> It should work. To stop the server with Ant build.xml <target name=stop"> <exec executable="${tomcat.home}/bin/shutdown.bat" os="Windows 2000" /> </target> The thing is once Tomcat is installed either as console or as a service would you want operators to 'easily' uninstall it? Installing/Uninstalling Tomcat is a painful in most shops with the side-effect that Tomcat has a tendency to 'stay put' once the install is declared stable. I can see 'hot deploy' as a better use of a developer's time..ie installing non-core pieces while Tomcat is running with a cache refresh picking up the new pieces (components) at a later time.. Something to think about.. Martin ----- Original Message ----- From: "Mladen Turk" <[EMAIL PROTECTED]> To: "Tomcat Developers List" <[EMAIL PROTECTED]> Sent: Saturday, December 20, 2003 1:27 PM Subject: TC5 Adding service.bat > > Hi, > > Can we add some batch file to the TC5 installation that > will enable users to easily install the TC5 as service without > the need to download the .exe installer. > > Since the procrun is invoked from nsi installation script, > making something like that would be quite simple. > I even volunteer to make the job. > > Something like service.bat with optional 'delete' argument > that will remove the service from the system or install by default. > > How that sounds? > > MT. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]