org.apache.cactus.ant
Class StopServerTask

java.lang.Object
  |
  +--org.apache.tools.ant.ProjectComponent
        |
        +--org.apache.tools.ant.Task
              |
              +--org.apache.cactus.ant.StopServerTask

public class StopServerTask
extends org.apache.tools.ant.Task

Call an Ant stop target in another thread and wait for the servlet engine to be stopped by trying to continously connect to a test URL. If it succeeds it means the server is not stopped yet ! If the server was already running when the start task was invoked, then it is not stopped when this tasks executes.

Version:
$Id: StopServerTask.java,v 1.1 2002/02/24 23:49:05 vmassol Exp $
Author:
Vincent Massol

Constructor Summary
StopServerTask()
           
 
Method Summary
 void execute()
           
 void init()
          Initialization
 void setStopTarget(java.lang.String theStopTarget)
          Ant will automatically call this method when the "stopTarget" attribute of our task is used.
 void setTestURL(java.lang.String theTestURL)
          Ant will automatically call this method when the "testURL" attribute of our task is used.
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StopServerTask

public StopServerTask()
Method Detail

init

public void init()
Initialization
Overrides:
init in class org.apache.tools.ant.Task

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Overrides:
execute in class org.apache.tools.ant.Task
See Also:
Task.execute()

setTestURL

public void setTestURL(java.lang.String theTestURL)
Ant will automatically call this method when the "testURL" attribute of our task is used.
Parameters:
theTestURL - the test URL to ping

setStopTarget

public void setStopTarget(java.lang.String theStopTarget)
Ant will automatically call this method when the "stopTarget" attribute of our task is used.
Parameters:
theStopTarget - the Ant target to call


Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.