org.apache.tools.ant.taskdefs.optional.j2ee
public class ServerDeploy extends Task
See Also: HotDeploymentTool AbstractHotDeploymentTool GenericHotDeploymentTool WebLogicHotDeploymentTool
Method Summary | |
---|---|
void | addGeneric(GenericHotDeploymentTool tool)
Creates a generic deployment tool.
|
void | addJonas(JonasHotDeploymentTool tool)
Creates a JOnAS deployment tool, for deployment to JOnAS servers.
|
void | addWeblogic(WebLogicHotDeploymentTool tool)
Creates a WebLogic deployment tool, for deployment to WebLogic servers.
|
void | execute()
Execute the task.
|
String | getAction()
Returns the action field. |
File | getSource()
Returns the source field (the path/filename of the component to be
deployed. |
void | setAction(String action)
The action to be performed, usually "deploy"; required.
|
void | setSource(File source)
The filename of the component to be deployed; optional
depending upon the tool and the action. |
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.
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.
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.
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.
Throws: org.apache.tools.ant.BuildException if the attributes are invalid or incomplete, or a failure occurs in the deployment process.
Returns: A string representing the "action" attribute.
Returns: A File object representing the "source" attribute.
Parameters: action A String representing the "action" attribute.
Parameters: source String representing the "source" attribute.