ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Dillon" <paul.dil...@solnet.com.au>
Subject Re: start tomcat in ant
Date Tue, 09 Oct 2001 01:08:34 GMT
Have a look at the jakarta-cactus project, it has a sample build.xml that
starts tomcat using the java task, and then continues.

I needed to do this as well, but I also wanted tomcat to keep running after
ant finished (I needed to bounce tomcat as part of deployment task).  I
tried a few things but ended up installing tomcat as an NT service (as per
tomcat instructions) and using exec:
    <exec executable="cmd.exe" os="Windows 2000">
      <arg value="/c"/>
      <arg value="net start jakarta-tomcat"/>
    </exec>

HTH,

Paul

----- Original Message -----
From: "Art Blake" <art.blake@mindspring.com>
To: <ant-user@jakarta.apache.org>
Sent: Tuesday, October 09, 2001 10:18 AM
Subject: RE: start tomcat in ant


> I asked a similar question a few days ago, but didn't get any responses.
I
> am not getting an IOException however.
>
> These three methods of starting tomcat work for me, but every single one
> causes ant to block while tomcat is running.  I am trying to get ant to
> start tomcat, and continue running.
>
>     <!-- set environment variables to properties prefixed to env -->
>     <property environment="env"/>
>
>     <!--1 -->
>
>     <exec dir="${env.TOMCAT_HOME}/bin" executable="startup.bat"
> vmlauncher="false"/>
>
>
>     <!--2 -->
>
>     <exec dir="${env.TOMCAT_HOME}/bin" executable="cmd.exe">
>       <arg line="/c startup.bat"/>
>     </exec>
>
>     <!--3 -->
>
>     <exec dir="${env.TOMCAT_HOME}/bin" executable="cmd.exe">
>       <arg line="/c start startup.bat"/>
>     </exec>
>
>
> good luck
>
> -----Original Message-----
> From: Guan, Kelly [mailto:C_Kelly.Guan@wingcast.com]
> Sent: Monday, October 08, 2001 7:10 PM
> To: ant-user@jakarta.apache.org
> Subject: start tomcat in ant
>
>
> sorry if anyone get this email twice.
>
> I am trying to start tomcat in ant, and I am using :
> <exec dir="c:/tomcat/bin" executable="startup" os="Windows 2000"
> failonerror="true" />
>
> I get IOException thrown by JVM.
>
> Anyone can give me some idea how to get over this problem?
>
> Really appreciated.
>
> Thanks
>
>


Mime
View raw message