Methods Summary |
---|
public void | addGeneric(GenericHotDeploymentTool tool)Creates a generic deployment tool.
Ant calls this method on creation to handle embedded "generic" elements
in the ServerDeploy task.
///////////////////////////////////////////////////////////////////////////
//
// Place vendor specific tool creations here.
//
///////////////////////////////////////////////////////////////////////////
tool.setTask(this);
vendorTools.addElement(tool);
|
public void | addJonas(JonasHotDeploymentTool tool)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.
tool.setTask(this);
vendorTools.addElement(tool);
|
public void | addWeblogic(WebLogicHotDeploymentTool tool)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.
tool.setTask(this);
vendorTools.addElement(tool);
|
public void | execute()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.
for (Enumeration e = vendorTools.elements();
e.hasMoreElements();) {
HotDeploymentTool tool = (HotDeploymentTool) e.nextElement();
tool.validateAttributes();
tool.deploy();
}
|
public java.lang.String | getAction()Returns the action field.
return action;
|
public java.io.File | getSource()Returns the source field (the path/filename of the component to be
deployed.
return source;
|
public void | setAction(java.lang.String action)The action to be performed, usually "deploy"; required.
Some tools support additional actions, such as "delete", "list", "undeploy", "update"...
this.action = action;
|
public void | setSource(java.io.File source)The filename of the component to be deployed; optional
depending upon the tool and the action.
this.source = source;
|