org.apache.tools.ant .Task org.apache.tools.ant.taskdefs.optional.ejb .WLStop WLStop public class WLStop extends Task (Code) Shuts down a WebLogic server.
To shut down an instance you must supply both a username and
a password.
Method Summary public Path createClasspath () public voidexecute () Do the work.public voidsetBEAHome (File beaHome) The location of the BEA Home; implicitly
selects Weblogic 6.0 shutdown; optional.public voidsetClasspath (Path path) public voidsetDelay (String s) Set the delay (in seconds) before shutting down the server;
optional.public voidsetPassword (String s) public voidsetUrl (String s) Set the URL to which the weblogic server is listening
for T3 connections; required.public voidsetUser (String s) The username of the account which will be used to shutdown the server;
required.
createClasspath public Path createClasspath()(Code) The classpath to be used with the Java Virtual Machine that runs the Weblogic
Shutdown command;
the path to be configured.
execute public void execute() throws BuildException (Code) Do the work.
The work is actually done by creating a separate JVM to run the weblogic admin task
This approach allows the classpath of the helper task to be set.
exception: BuildException - if someting goes wrong with the build
setBEAHome public void setBEAHome(File beaHome)(Code) The location of the BEA Home; implicitly
selects Weblogic 6.0 shutdown; optional.
Parameters: beaHome - the BEA Home directory.
setClasspath public void setClasspath(Path path)(Code) The classpath to be used with the Java Virtual Machine that runs the Weblogic
Shutdown command;
Parameters: path - the classpath to use when executing the weblogic admin task.
setDelay public void setDelay(String s)(Code) Set the delay (in seconds) before shutting down the server;
optional.
Parameters: s - the selay.
setPassword public void setPassword(String s)(Code) The password for the account specified in the
user parameter; required
Parameters: s - the password.
setUrl public void setUrl(String s)(Code) Set the URL to which the weblogic server is listening
for T3 connections; required.
Parameters: s - the url.
setUser public void setUser(String s)(Code) The username of the account which will be used to shutdown the server;
required.
Parameters: s - the username.