|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.ProjectComponent org.apache.tools.ant.Task org.objectweb.jonas.ant.BootstrapTask org.objectweb.jonas.ant.JonasHotDeploymentTool
public class JonasHotDeploymentTool
Class used to manage deployment on JOnAS (with ant and ServerDeploy task)
Field Summary |
---|
Fields inherited from class org.apache.tools.ant.Task |
---|
description, location, target, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
project |
Fields inherited from interface org.objectweb.jonas.ant.HotDeploymentTool |
---|
ACTION_DELETE, ACTION_DEPLOY, ACTION_LIST, ACTION_UNDEPLOY, ACTION_UPDATE |
Constructor Summary | |
---|---|
JonasHotDeploymentTool()
|
Method Summary | |
---|---|
void |
deploy()
Perform the actual deployment. |
protected ServerDeploy |
getTask()
Returns the task field, a ServerDeploy object. |
protected boolean |
isActionValid()
Determines if the "action" attribute defines a valid action. |
void |
setTask(ServerDeploy task)
Sets the parent task. |
void |
validateAttributes()
Validates the passed in attributes. |
Methods inherited from class org.objectweb.jonas.ant.BootstrapTask |
---|
createClasspath, getBootstraptask, getCatalinaHome, getDomainName, getJettyHome, getJonasRoot, getServerName, getTaskName, setCatalinaHome, setClasspath, setDomainName, setJettyHome, setJonasbase, setJonasRoot, setJvmopts, setServerName, setTaskName |
Methods inherited from class org.apache.tools.ant.Task |
---|
execute, getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
getProject, setProject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JonasHotDeploymentTool()
Method Detail |
---|
public void validateAttributes() throws org.apache.tools.ant.BuildException
Only the "action" attribute is required in the base class. Subclasses should check attributes accordingly.
validateAttributes
in interface HotDeploymentTool
org.apache.tools.ant.BuildException
- if the attributes are
invalid or incomplete.public void setTask(ServerDeploy task)
setTask
in interface HotDeploymentTool
task
- a ServerDeploy object representing the parent task.protected ServerDeploy getTask()
protected boolean isActionValid()
Subclasses should determine if the action passed in is supported by the vendor's deployment tool.
Actions may by "deploy", "delete", etc... It all depends on the tool.
public void deploy() throws org.apache.tools.ant.BuildException
deploy
in interface HotDeploymentTool
org.apache.tools.ant.BuildException
- if the attributes are
invalid or incomplete.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |