java.lang.Cloneable
public class ServerDeploy extends Task
description, location, project
Constructor | Description |
---|---|
ServerDeploy() |
Modifier and Type | Method | Description |
---|---|---|
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.
|
java.lang.String |
getAction() |
Returns the action field.
|
java.io.File |
getSource() |
Returns the source field (the path/filename of the component to be
deployed.
|
void |
setAction(java.lang.String action) |
The action to be performed, usually "deploy"; required.
|
void |
setSource(java.io.File source) |
The filename of the component to be deployed; optional
depending upon the tool and the action.
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
public void addGeneric(GenericHotDeploymentTool tool)
Ant calls this method on creation to handle embedded "generic" elements in the ServerDeploy task.
tool
- An instance of GenericHotDeployment tool, passed in by Ant.public void addWeblogic(WebLogicHotDeploymentTool tool)
Ant calls this method on creation to handle embedded "weblogic" elements in the ServerDeploy task.
tool
- An instance of WebLogicHotDeployment tool, passed in by Ant.public void addJonas(JonasHotDeploymentTool tool)
Ant calls this method on creation to handle embedded "jonas" elements in the ServerDeploy task.
tool
- An instance of JonasHotDeployment tool, passed in by Ant.public void execute() throws BuildException
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.
execute
in class Task
BuildException
- if the attributes
are invalid or incomplete, or a failure occurs in the deployment process.public java.lang.String getAction()
public void setAction(java.lang.String action)
action
- A String representing the "action" attribute.public java.io.File getSource()
public void setSource(java.io.File source)
source
- String representing the "source" attribute.