The simple implementation spawns a JVM with the supplied class name, jvm args, and arguments.
org.apache.tools.ant.taskdefs.optional.j2ee.HotDeploymentTool , org.apache.tools.ant.taskdefs.optional.j2ee.AbstractHotDeploymentTool , org.apache.tools.ant.taskdefs.optional.j2ee.ServerDeploy
| Modifier and Type | Field and Description |
|---|---|
| private String | className
The fully qualified class name of the deployment tool |
| private Java | java
A Java task used to run the deployment tool |
| private static final String[] | VALID_ACTIONS
List of valid actions |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Commandline. | Returns: A Commandline.Argument object representing the command line argument being passed when the deployment tool is run. IE: "-user=mark", "-password=venture"...Add a nested argument element to hand to the deployment tool; optional. |
| public Commandline. | Returns: A Commandline.Argument object representing the JVM command line argument being passed when the deployment tool is run. IE: "-ms64m", "-mx128m"...Add a nested argument element to hand to the JVM running the deployment tool. |
| public void | deploy()
Implements org. |
| public String | |
| public Java | |
| protected boolean | Returns: true if the "action" attribute is valid, false if not.Implements abstract org. |
| public void | setClassName(String
The fully qualified class name of the class
to perform deployment. className)The name of the class to execute to perform deployment; required. |
| public void | setTask(ServerDeploy
An ServerDeploy object representing the parent task. task)Overrides org. Implements org. |
| public void | validateAttributes()
Overrides org. Implements org. |
| className | back to summary |
|---|---|
| private String className The fully qualified class name of the deployment tool | |
| java | back to summary |
|---|---|
| private Java java A Java task used to run the deployment tool | |
| VALID_ACTIONS | back to summary |
|---|---|
| private static final String[] VALID_ACTIONS List of valid actions | |
| GenericHotDeploymentTool | back to summary |
|---|---|
| public GenericHotDeploymentTool() | |
| createArg | back to summary |
|---|---|
| public Commandline. Add a nested argument element to hand to the deployment tool; optional.
| |
| createJvmarg | back to summary |
|---|---|
| public Commandline. Add a nested argument element to hand to the JVM running the deployment tool. Creates a nested arg element.
| |
| deploy | back to summary |
|---|---|
| public void deploy() throws BuildException Implements org. Perform the actual deployment. For this generic implementation, a JVM is spawned using the supplied classpath, classname, JVM args, and command line arguments.
| |
| getClassName | back to summary |
|---|---|
| public String getClassName() Get the classname attribute.
| |
| getJava | back to summary |
|---|---|
| public Java getJava() get the java attribute.
| |
| isActionValid | back to summary |
|---|---|
| protected boolean isActionValid() Implements abstract org. Determines if the "action" attribute defines a valid action. Subclasses should determine if the action passed in is supported by the vendor's deployment tool. For this generic implementation, the only valid action is "deploy"
| |
| setClassName | back to summary |
|---|---|
| public void setClassName(String className) The name of the class to execute to perform deployment; required. Example: "com.foobar.tools.deploy.DeployTool"
| |
| setTask | back to summary |
|---|---|
| public void setTask(ServerDeploy task) Overrides org. Implements org. Sets the parent task.
| |
| validateAttributes | back to summary |
|---|---|
| public void validateAttributes() throws BuildException Overrides org. Implements org. Validates the passed in attributes. Ensures the className and arguments attribute have been set.
| |