ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Burgess <J...@riskdecisions.com>
Subject RE: Invoking Tomcat
Date Wed, 20 Feb 2002 15:58:49 GMT
I use

<target name="deploy" ...>
<war warfile="${warname}.war" webxml="WEB-INF/web.xml">
	<classes.. />
	<lib ... />
	<fileset ..jsps../>
</war>
</target>

<target name="test" depends="deploy">
<exec dir="${tchome}\bin" vmlauncher="false" executable="shutdown.bat"/>
<delete dir="${tchome}\webapps\${warname}" />
<exec dir="${tchome}\bin" vmlauncher="false" executable="startup.bat"/>
</target>

The drawback is that ant carries on running until tomcat is stopped, since
it started it.  It should be possible to do something with a bat file
containing start startup.bat or similar but I haven't managed to get it to
work, and don't mind this behaviour anyway.


Best Wishes
John Burgess
john@riskdecisions.com
Tel: 01865 718666 
Fax: 01865 718600

-----Original Message-----
From: dnc@csd.abdn.ac.uk [mailto:dnc@csd.abdn.ac.uk]
Sent: Wednesday, February 20, 2002 2:19 PM
To: ant-user@jakarta.apache.org
Subject: Invoking Tomcat


Hi,

Is it possible for Ant to shutdown Tomcat if it is already running, build 
my web archive and after deploying it to start Tomcat up again if the build 
is sucessful?  This would save me typing:

shutdown
build
startup

every time I want to run my web app.


D. Clarkson


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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.325 / Virus Database: 182 - Release Date: 19/02/02
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.325 / Virus Database: 182 - Release Date: 19/02/02
 

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


Mime
View raw message