| org.apache.tools.ant.Task org.apache.tools.ant.taskdefs.optional.j2ee.ServerDeploy
Method Summary | |
public void | addGeneric(GenericHotDeploymentTool tool) Creates a generic deployment tool. | public void | addJonas(JonasHotDeploymentTool tool) Creates a JOnAS deployment tool, for deployment to JOnAS servers. | public void | addWeblogic(WebLogicHotDeploymentTool tool) Creates a WebLogic deployment tool, for deployment to WebLogic servers. | public void | execute() Execute the task.
This method calls the deploy() method on each of the vendor-specific tools
in the vendorTools collection. | public String | getAction() Returns the action field. | public File | getSource() Returns the source field (the path/filename of the component to be
deployed. | public void | setAction(String action) The action to be performed, usually "deploy"; required. | public void | setSource(File source) The filename of the component to be deployed; optional
depending upon the tool and the action. |
addGeneric | public void addGeneric(GenericHotDeploymentTool tool)(Code) | | Creates a generic deployment tool.
Ant calls this method on creation to handle embedded "generic" elements
in the ServerDeploy task.
Parameters: tool - An instance of GenericHotDeployment tool, passed in by Ant. |
addJonas | public void addJonas(JonasHotDeploymentTool tool)(Code) | | Creates a JOnAS deployment tool, for deployment to JOnAS servers.
Ant calls this method on creation to handle embedded "jonas" elements
in the ServerDeploy task.
Parameters: tool - An instance of JonasHotDeployment tool, passed in by Ant. |
addWeblogic | public void addWeblogic(WebLogicHotDeploymentTool tool)(Code) | | Creates a WebLogic deployment tool, for deployment to WebLogic servers.
Ant calls this method on creation to handle embedded "weblogic" elements
in the ServerDeploy task.
Parameters: tool - An instance of WebLogicHotDeployment tool, passed in by Ant. |
execute | public void execute() throws BuildException(Code) | | Execute the task.
This method calls the deploy() method on each of the vendor-specific tools
in the vendorTools collection. This performs the actual
process of deployment on each tool.
exception: org.apache.tools.ant.BuildException - if the attributesare invalid or incomplete, or a failure occurs in the deployment process. |
getAction | public String getAction()(Code) | | Returns the action field.
A string representing the "action" attribute. |
getSource | public File getSource()(Code) | | Returns the source field (the path/filename of the component to be
deployed.
A File object representing the "source" attribute. |
setAction | public void setAction(String action)(Code) | | The action to be performed, usually "deploy"; required.
Some tools support additional actions, such as "delete", "list", "undeploy", "update"...
Parameters: action - A String representing the "action" attribute. |
setSource | public void setSource(File source)(Code) | | The filename of the component to be deployed; optional
depending upon the tool and the action.
Parameters: source - String representing the "source" attribute. |
|
|