tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominic Clay <dominic.c...@europrospectus.com>
Subject Stopping and Starting Tomcat as part of an Ant script
Date Mon, 17 Jun 2002 11:15:44 GMT
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>

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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message