ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: Using Ant to stop and start Tomcat
Date Fri, 13 Dec 2002 15:31:31 GMT
Do this instead, and let Ant do the quoting:

    <java fork="yes" failonerror="false" output="nul"
          classname="org.apache.catalina.startup.Bootstrap">
      <arg value="stop" />
      <sysproperty name="catalina.base" value="${tomcat40.home}" />
      <sysproperty name="catalina.home" value="${tomcat40.home}" />
      <classpath path="${tomcat40.cp}" />
    </java>

But I would still think Tomcat as Ant tasks to do the same thing. Might not
be that much more convenient, just syntactically nicer IMHO. --DD

--DD

-----Original Message-----
From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de] 
Sent: Friday, December 13, 2002 3:07 AM
To: ant-user@jakarta.apache.org
Subject: AW: Using Ant to stop and start Tomcat

In my scripts

    <java fork="yes" failonerror="false" output="nul"
          classname="org.apache.catalina.startup.Bootstrap">
      <arg value="stop" />
      <jvmarg value="-Dcatalina.base=&quot;${tomcat40.home}&quot;" />
      <jvmarg value="-Dcatalina.home=&quot;${tomcat40.home}&quot;" />
      <classpath path="${tomcat40.cp}" />
    </java>

stops tommy.

Jan Matèrne

> -----Urspr√ľngliche Nachricht-----
> Von: Dominique Devienne [mailto:DDevienne@lgc.com]
> Gesendet am: Donnerstag, 12. Dezember 2002 17:15
> An: 'Ant Users List'
> Betreff: RE: Using Ant to stop and start Tomcat
> 
> I'd be surprised Tomcat doesn't already have these. Did you 
> check the Tomcat
> doco? --DD
> 
> -----Original Message-----
> From: Anthony Smith [mailto:anthony.smith@fedex.com] 
> Sent: Thursday, December 12, 2002 10:11 AM
> To: Ant Users List
> Subject: Using Ant to stop and start Tomcat
> 
> Hey I wanted to create a really lazy ant option that stops 
> Tomcat and then
> starts it back.
> 
> 
> I have on that builds my webapp, deletes old folder and war 
> from tomcat and
> then copies over the new war. I just wanted to add to it so 
> that it could
> stop tomcat first and then start it back.
> 
> 
> I am using 4.1.12
> 
> 
> Any ideas?
> 
> --
> To unsubscribe, e-mail:   
> <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:ant-user-help@jakarta.apache.org>
> 

--
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