org.apache.tools.ant.taskdefs.optional.j2ee
public class GenericHotDeploymentTool extends AbstractHotDeploymentTool
The simple implementation spawns a JVM with the supplied class name, jvm args, and arguments.
See Also: HotDeploymentTool AbstractHotDeploymentTool ServerDeploy
Method Summary | |
---|---|
Commandline.Argument | createArg()
Add a nested argument element to hand to the deployment tool; optional. |
Commandline.Argument | createJvmarg()
Add a nested argment element to hand to the JVM running the
deployment tool.
|
void | deploy()
Perform the actual deployment.
|
String | getClassName() |
Java | getJava() |
protected boolean | isActionValid()
Determines if the "action" attribute defines a valid action.
|
void | setClassName(String className)
The name of the class to execute to perfom
deployment; required.
|
void | setTask(ServerDeploy task)
Sets the parent task. |
void | validateAttributes()
Validates the passed in attributes.
|
Returns: A Commandline.Argument object representing the command line argument being passed when the deployment tool is run. IE: "-user=mark", "-password=venture"...
Returns: A Commandline.Argument object representing the JVM command line argument being passed when the deployment tool is run. IE: "-ms64m", "-mx128m"...
Throws: org.apache.tools.ant.BuildException if the attributes are invalid or incomplete.
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"
Returns: true if the "action" attribute is valid, false if not.
Parameters: className The fully qualified class name of the class to perform deployment.
Parameters: task An ServerDeploy object representing the parent task.
UNKNOWN: ignored="true"
Throws: org.apache.tools.ant.BuildException if the attributes are invalid or incomplete.