|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tools.ant.ProjectComponent | +--org.apache.tools.ant.Task | +--org.apache.cactus.ant.StopServerTask
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.
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 |
public StopServerTask()
Method Detail |
public void init()
init
in class org.apache.tools.ant.Task
public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
Task.execute()
public void setTestURL(java.lang.String theTestURL)
theTestURL
- the test URL to pingpublic void setStopTarget(java.lang.String theStopTarget)
theStopTarget
- the Ant target to call
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |