|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.optional.ejb.WLRun
public class WLRun
Starts a WebLogic server. A number of parameters are used to control the operation of the weblogic instance. Note that the task, and hence ant, will not complete until the weblogic instance is stopped.
| Field Summary | |
|---|---|
protected static java.lang.String |
DEFAULT_PROPERTIES_FILE
|
protected static java.lang.String |
DEFAULT_WL51_POLICY_FILE
|
protected static java.lang.String |
DEFAULT_WL60_POLICY_FILE
|
| Fields inherited from class org.apache.tools.ant.Task |
|---|
target, taskName, taskType, wrapper |
| Fields inherited from class org.apache.tools.ant.ProjectComponent |
|---|
description, location, project |
| Constructor Summary | |
|---|---|
WLRun()
|
|
| Method Summary | |
|---|---|
Path |
createClasspath()
Add the classpath for the user classes |
Path |
createWLClasspath()
Get the classpath to the weblogic classpaths |
void |
execute()
Do the work. |
void |
setArgs(java.lang.String args)
Additional argument string passed to the Weblogic instance; optional. |
void |
setBEAHome(java.io.File beaHome)
The location of the BEA Home; implicitly selects Weblogic 6.0; optional. |
void |
setClasspath(Path classpath)
The classpath to be used with the Java Virtual Machine that runs the Weblogic Server; required. |
void |
setDomain(java.lang.String domain)
Set the Domain to run in; required for WL6.0 |
void |
setHome(java.io.File weblogicHome)
The location where weblogic lives. |
void |
setJvmargs(java.lang.String args)
Set the additional arguments to pass to the weblogic JVM |
void |
setName(java.lang.String serverName)
The name of the weblogic server within the weblogic home which is to be run. |
void |
setPassword(java.lang.String password)
Set the management password of the server; optional and only applicable to WL6.0. |
void |
setPKPassword(java.lang.String pkpassword)
Set the private key password so the server can decrypt the SSL private key file; optional and only applicable to WL6.0. |
void |
setPolicy(java.lang.String securityPolicy)
The name of the security policy file within the weblogic home directory that is to be used. |
void |
setProperties(java.lang.String propertiesFilename)
The name of the server's properties file within the weblogic home directory used to control the weblogic instance; required for WL4.5.1 |
void |
setUsername(java.lang.String username)
Set the management username to run the server; optional and only applicable to WL6.0. |
void |
setWeblogicMainClass(java.lang.String c)
name of the main class for weblogic; optional. |
void |
setWlclasspath(Path weblogicClasspath)
Set the weblogic classpath used by the Weblogic Server; optional, and only applicable to WL4.5.1 The weblogic classpath is used by weblogic to support dynamic class loading. |
| Methods inherited from class org.apache.tools.ant.Task |
|---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
| Methods inherited from class org.apache.tools.ant.ProjectComponent |
|---|
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final java.lang.String DEFAULT_WL51_POLICY_FILE
protected static final java.lang.String DEFAULT_WL60_POLICY_FILE
protected static final java.lang.String DEFAULT_PROPERTIES_FILE
| Constructor Detail |
|---|
public WLRun()
| Method Detail |
|---|
public Path createClasspath()
public Path createWLClasspath()
public void execute()
throws BuildException
execute in class TaskBuildException - if someting goes wrong with the buildpublic void setClasspath(Path classpath)
classpath - the classpath to use when executing the weblogic server.public void setWlclasspath(Path weblogicClasspath)
weblogicClasspath - the weblogic classpathpublic void setPolicy(java.lang.String securityPolicy)
weblogic.policy
is used.
securityPolicy - the security policy to use.public void setHome(java.io.File weblogicHome)
weblogicHome - the home directory of weblogic.public void setBEAHome(java.io.File beaHome)
beaHome - the BEA Home directory.public void setName(java.lang.String serverName)
serverName - the name of the server.public void setDomain(java.lang.String domain)
domain - the domainpublic void setProperties(java.lang.String propertiesFilename)
propertiesFilename - the properties file namepublic void setJvmargs(java.lang.String args)
args - the arguments to be passed to the JVMpublic void setUsername(java.lang.String username)
username - the management username of the server.public void setPassword(java.lang.String password)
password - the management pasword of the server.public void setPKPassword(java.lang.String pkpassword)
pkpassword - the private key password,public void setArgs(java.lang.String args)
args - the argument stringpublic void setWeblogicMainClass(java.lang.String c)
c - the name of the class
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||