org.apache.tools.ant.taskdefs.optional.j2ee
public class WebLogicHotDeploymentTool extends AbstractHotDeploymentTool implements HotDeploymentTool
In the end, this task assembles the commadline parameters and runs the weblogic.deploy tool in a seperate JVM.
See Also: HotDeploymentTool AbstractHotDeploymentTool ServerDeploy
Method Summary | |
---|---|
protected StringBuffer | buildArgsPrefix()
Builds the prefix arguments to pass to weblogic.deploy.
|
protected String | buildDeployArgs()
Builds the arguments to pass to weblogic.deploy for deployment actions
("deploy" and "update"). |
protected String | buildListArgs()
Builds the arguments to pass to weblogic.deploy for the list action |
protected String | buildUndeployArgs()
Builds the arguments to pass to weblogic.deploy for undeployment actions
("undeploy" and "delete"). |
void | deploy()
Perform the actual deployment.
|
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(String application)
The name of the application being deployed; required. |
void | setComponent(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.
|
Returns: A StringBuffer containing the prefix arguments. The action-specific build methods will append to this StringBuffer.
Returns: A String containing the full argument string for weblogic.deploy.
Returns: A String containing the full argument string for weblogic.deploy.
Returns: A String containing the full argument string for weblogic.deploy.
Throws: org.apache.tools.ant.BuildException if the attributes are invalid or incomplete.
Returns: A String containing the arguments for the weblogic.deploy tool.
Valid actions are contained in the static array VALID_ACTIONS
Returns: true if the action attribute is valid, false if not.
Parameters: application A String representing the application portion of the weblogic.deploy command line.
<component>:<target1>,<target2>...
Where component is the archive name (minus the .jar, .ear, .war
extension). Targets are the servers where the components will be deployedParameters: component A String representing the value of the "-component" argument of the weblogic.deploy command line argument.
Parameters: debug A boolean representing weblogic.deploy "-debug" flag.
The rules are:
Throws: org.apache.tools.ant.BuildException if the attributes are invalid or incomplete