Stop and Start TOMCAT with ANT

View: New views
3 Messages — Rating Filter:   Alert me  

Stop and Start TOMCAT with ANT

by MohamedAMINE OSMAN :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,I search a source code with ant to stop and start apache tomcat. to
deploy my application.
thenks

--

Merci...
OSMAN Mohamed AMINE.

AW: Stop and Start TOMCAT with ANT

by Jan.Materne :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

These tasks are part of Tomcat
http://svn.apache.org/repos/asf/tomcat/trunk/java/org/apache/catalina/ant/StartTask.java
http://svn.apache.org/repos/asf/tomcat/trunk/java/org/apache/catalina/ant/StopTask.java


Jan

> -----Ursprüngliche Nachricht-----
> Von: MohamedAMINE OSMAN [mailto:osman.amine@...]
> Gesendet: Samstag, 4. Juli 2009 14:01
> An: dev@...
> Betreff: Stop and Start TOMCAT with ANT
>
> Hi,I search a source code with ant to stop and start apache tomcat. to
> deploy my application.
> thenks
>
> --
>
> Merci...
> OSMAN Mohamed AMINE.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...


Re: Stop and Start TOMCAT with ANT

by Rizvan Asgarov :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi All,

I think it will be useful for you...

<!-- start Tomcat target -->  
   <project name = "testTomcat" default = "stopTomcat">  
     
   <target name = "startTomcat">  
       <exec executable = ".../bin/startup.bat"/>  
   </target>  
     
   <!-- stop Tomcat target -->  
   <target name = "stopTomcat" depends="startTomcat">  
       <exec executable = ".../bin/shutdown.bat"/>  
   </target>  
   </project>

Sincerely,
Rizvan

MohamedAMINE OSMAN wrote:
Hi,I search a source code with ant to stop and start apache tomcat. to
deploy my application.
thenks

--

Merci...
OSMAN Mohamed AMINE.