|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tools.ant.taskdefs.optional.j2ee.AbstractHotDeploymentTool | +--org.apache.tools.ant.taskdefs.optional.j2ee.WebLogicHotDeploymentTool
An Ant wrapper task for the weblogic.deploy tool. This is used to hot-deploy J2EE applications to a running WebLogic server. This is not the same as creating the application archive. This task assumes the archive (EAR, JAR, or WAR) file has been assembled and is supplied as the "source" attribute.
In the end, this task assembles the commadline parameters and runs the weblogic.deploy tool in a seperate JVM.
HotDeploymentTool
,
AbstractHotDeploymentTool
,
ServerDeploy
Field Summary |
Fields inherited from interface org.apache.tools.ant.taskdefs.optional.j2ee.HotDeploymentTool |
ACTION_DELETE, ACTION_DEPLOY, ACTION_LIST, ACTION_UNDEPLOY, ACTION_UPDATE |
Constructor Summary | |
WebLogicHotDeploymentTool()
|
Method Summary | |
protected java.lang.StringBuffer |
buildArgsPrefix()
Builds the prefix arguments to pass to weblogic.deploy. |
protected java.lang.String |
buildDeployArgs()
Builds the arguments to pass to weblogic.deploy for deployment actions ("deploy" and "update"). |
protected java.lang.String |
buildListArgs()
Builds the arguments to pass to weblogic.deploy for the list action |
protected java.lang.String |
buildUndeployArgs()
Builds the arguments to pass to weblogic.deploy for undeployment actions ("undeploy" and "delete"). |
void |
deploy()
Perform the actual deployment. |
java.lang.String |
getArguments()
Builds the arguments to pass to weblogic.deploy according to the supplied action. |
protected boolean |
isActionValid()
Determines if the action supplied is valid. |
void |
setApplication(java.lang.String application)
The name of the application being deployed; required. |
void |
setComponent(java.lang.String component)
the component string for the deployment targets; optional. |
void |
setDebug(boolean debug)
If set to true, additional information will be printed during the deployment process; optional. |
void |
validateAttributes()
Validates the passed in attributes. |
Methods inherited from class org.apache.tools.ant.taskdefs.optional.j2ee.AbstractHotDeploymentTool |
createClasspath, getClasspath, getPassword, getServer, getTask, getUserName, setClasspath, setPassword, setServer, setTask, setUserName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.tools.ant.taskdefs.optional.j2ee.HotDeploymentTool |
setTask |
Constructor Detail |
public WebLogicHotDeploymentTool()
Method Detail |
public void deploy()
deploy
in interface HotDeploymentTool
deploy
in class AbstractHotDeploymentTool
BuildException
- if the attributes are invalid or incomplete.public void validateAttributes() throws BuildException
The rules are:
validateAttributes
in interface HotDeploymentTool
validateAttributes
in class AbstractHotDeploymentTool
BuildException
- if the attributes are invalid or incompletepublic java.lang.String getArguments() throws BuildException
BuildException
protected boolean isActionValid()
Valid actions are contained in the static array VALID_ACTIONS
isActionValid
in class AbstractHotDeploymentTool
protected java.lang.StringBuffer buildArgsPrefix()
protected java.lang.String buildDeployArgs()
protected java.lang.String buildUndeployArgs()
protected java.lang.String buildListArgs()
public void setDebug(boolean debug)
debug
- A boolean representing weblogic.deploy "-debug" flag.public void setApplication(java.lang.String application)
application
- A String representing the application portion of the
weblogic.deploy command line.public void setComponent(java.lang.String component)
<component>:<target1>,<target2>...
Where component is the archive name (minus the .jar, .ear, .war
extension). Targets are the servers where the components will be deployed
component
- A String representing the value of the "-component"
argument of the weblogic.deploy command line argument.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |