Class ServerDeploy
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.optional.j2ee.ServerDeploy
- 
Field SummaryFields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidCreates a generic deployment tool.voidCreates a JOnAS deployment tool, for deployment to JOnAS servers.voidCreates a WebLogic deployment tool, for deployment to WebLogic servers.voidexecute()Execute the task.Returns the action field.Returns the source field (the path/filename of the component to be deployed.voidThe action to be performed, usually "deploy"; required.voidThe filename of the component to be deployed; optional depending upon the tool and the action.Methods inherited from class org.apache.tools.ant.TaskbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponentclone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
- 
Constructor Details- 
ServerDeploypublic ServerDeploy()
 
- 
- 
Method Details- 
addGenericCreates 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.
 
- 
addWeblogicCreates 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.
 
- 
addJonasCreates 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.
 
- 
executeExecute the task.This method calls the deploy() method on each of the vendor-specific tools in the vendorToolscollection. This performs the actual process of deployment on each tool.- Overrides:
- executein class- Task
- Throws:
- BuildException- if the attributes are invalid or incomplete, or a failure occurs in the deployment process.
 
- 
getActionReturns the action field.- Returns:
- A string representing the "action" attribute.
 
- 
setActionThe 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.
 
- 
getSourceReturns the source field (the path/filename of the component to be deployed.- Returns:
- A File object representing the "source" attribute.
 
- 
setSourceThe filename of the component to be deployed; optional depending upon the tool and the action.- Parameters:
- source- String representing the "source" attribute.
 
 
-