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.
getArguments() Builds the arguments to pass to weblogic.deploy according to the
supplied action.
protected boolean
isActionValid() Determines if the action supplied is valid.
public void
setApplication(String application) The name of the application being deployed; required.
public void
setComponent(String component) the component string for the deployment targets; optional.
It is in the form <component>:<target1>,<target2>...
Where component is the archive name (minus the .jar, .ear, .war
extension).
public void
setDebug(boolean debug) If set to true, additional information will be
printed during the deployment process; optional.
Builds the prefix arguments to pass to weblogic.deploy.
These arguments are generic across all actions.
A StringBuffer containing the prefix arguments.The action-specific build methods will append to this StringBuffer.
Builds the arguments to pass to weblogic.deploy for deployment actions
("deploy" and "update").
A String containing the full argument string for weblogic.deploy.
Builds the arguments to pass to weblogic.deploy for undeployment actions
("undeploy" and "delete").
A String containing the full argument string for weblogic.deploy.
Perform the actual deployment.
For this implementation, a JVM is spawned and the weblogic.deploy
tools is executed.
exception: org.apache.tools.ant.BuildException - if the attributes are invalid or incomplete.
Builds the arguments to pass to weblogic.deploy according to the
supplied action.
A String containing the arguments for the weblogic.deploy tool. throws: BuildException - if there is an error.
Valid actions are contained in the static array VALID_ACTIONS
true if the action attribute is valid, false if not.
setApplication
public void setApplication(String application)(Code)
The name of the application being deployed; required.
Parameters: application - A String representing the application portion of theweblogic.deploy command line.
the component string for the deployment targets; optional.
It is in the form <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
Parameters: component - A String representing the value of the "-component"argument of the weblogic.deploy command line argument.
If set to true, additional information will be
printed during the deployment process; optional.
Parameters: debug - A boolean representing weblogic.deploy "-debug" flag.
If action is "deploy" or "update" the "application" and "source"
attributes must be supplied.
If action is "delete" or "undeploy" the "application" attribute must
be supplied.
exception: org.apache.tools.ant.BuildException - if the attributes are invalid or incomplete
Methods inherited from org.apache.tools.ant.taskdefs.optional.j2ee.AbstractHotDeploymentTool