org.apache.tools.ant.taskdefs.optional.j2ee
Class GenericHotDeploymentTool
- HotDeploymentTool
public class GenericHotDeploymentTool
A generic tool for J2EE server hot deployment.
The simple implementation spawns a JVM with the supplied
class name, jvm args, and arguments.
createClasspath , deploy , getClasspath , getPassword , getServer , getTask , getUserName , isActionValid , setClasspath , setPassword , setServer , setTask , setUserName , validateAttributes |
createArg
public Commandline.Argument createArg()
Add a nested argument element to hand to the deployment tool; optional.
- A Commandline.Argument object representing the
command line argument being passed when the deployment
tool is run. IE: "-user=mark", "-password=venture"...
createJvmarg
public Commandline.Argument createJvmarg()
Add a nested argment element to hand to the JVM running the
deployment tool.
Creates a nested arg element.
- A Commandline.Argument object representing the
JVM command line argument being passed when the deployment
tool is run. IE: "-ms64m", "-mx128m"...
getClassName
public String getClassName()
getJava
public Java getJava()
isActionValid
protected boolean isActionValid()
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"
- isActionValid in interface AbstractHotDeploymentTool
- true if the "action" attribute is valid, false if not.
setClassName
public void setClassName(String className)
The name of the class to execute to perfom
deployment; required.
Example: "com.foobar.tools.deploy.DeployTool"
className
- The fully qualified class name of the class
to perform deployment.
Copyright © 2000-2006 Apache Software Foundation. All Rights Reserved.