Class JonasHotDeploymentTool
java.lang.Object
org.apache.tools.ant.taskdefs.optional.j2ee.AbstractHotDeploymentTool
org.apache.tools.ant.taskdefs.optional.j2ee.GenericHotDeploymentTool
org.apache.tools.ant.taskdefs.optional.j2ee.JonasHotDeploymentTool
- All Implemented Interfaces:
- HotDeploymentTool
An Ant wrapper task for the weblogic.deploy tool. This is used
  to hot-deploy J2EE applications to a running WebLogic server.
  This is not the same as creating the application
  archive. This task assumes the archive (EAR, JAR, or WAR) file
  has been assembled and is supplied as the "source" attribute.
  
In the end, this task assembles the commandline parameters and runs the weblogic.deploy tool in a separate JVM.
- See Also:
- 
Field SummaryFieldsFields inherited from interface org.apache.tools.ant.taskdefs.optional.j2ee.HotDeploymentToolACTION_DELETE, ACTION_DEPLOY, ACTION_LIST, ACTION_UNDEPLOY, ACTION_UPDATE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongets the classpath field.protected booleanDetermines if the action supplied is valid.voidsetDavidhost(String inValue) Set the host for the David ORB; required if ORB==david.voidsetDavidport(int inValue) Set the port for the David ORB; required if ORB==david.voidsetJonasroot(File inValue) set the jonas root directory (-Dinstall.root=).voidChoose your ORB : RMI, JEREMIE, DAVID, ...; optional.voidValidates the passed in attributes.Methods inherited from class org.apache.tools.ant.taskdefs.optional.j2ee.GenericHotDeploymentToolcreateArg, createJvmarg, deploy, getClassName, getJava, setClassName, setTaskMethods inherited from class org.apache.tools.ant.taskdefs.optional.j2ee.AbstractHotDeploymentToolcreateClasspath, getPassword, getServer, getTask, getUserName, setClasspath, setPassword, setServer, setUserNameMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.tools.ant.taskdefs.optional.j2ee.HotDeploymentTooldeploy, setTask
- 
Field Details- 
DEFAULT_ORBDescription of the Field- See Also:
 
 
- 
- 
Constructor Details- 
JonasHotDeploymentToolpublic JonasHotDeploymentTool()
 
- 
- 
Method Details- 
setDavidhostSet the host for the David ORB; required if ORB==david.- Parameters:
- inValue- The new davidhost value
 
- 
setDavidportpublic void setDavidport(int inValue) Set the port for the David ORB; required if ORB==david.- Parameters:
- inValue- The new davidport value
 
- 
setJonasrootset the jonas root directory (-Dinstall.root=). This element is required.- Parameters:
- inValue- The new jonasroot value
 
- 
setOrbChoose your ORB : RMI, JEREMIE, DAVID, ...; optional. If omitted, it defaults to the one present in classpath. The corresponding JOnAS JAR is automatically added to the classpath. If your orb is DAVID (RMI/IIOP) you must specify davidhost and davidport properties.- Parameters:
- inValue- RMI, JEREMIE, DAVID,...
 
- 
getClasspathgets the classpath field.- Overrides:
- getClasspathin class- AbstractHotDeploymentTool
- Returns:
- A Path representing the "classpath" attribute.
 
- 
validateAttributesValidates the passed in attributes.The rules are: - If action is "deploy" or "update" the "application" and "source" attributes must be supplied.
- If action is "delete" or "undeploy" the "application" attribute must be supplied.
 - Specified by:
- validateAttributesin interface- HotDeploymentTool
- Overrides:
- validateAttributesin class- GenericHotDeploymentTool
- Throws:
- BuildException- if something goes wrong
 
- 
isActionValidprotected boolean isActionValid()Determines if the action supplied is valid.Valid actions are contained in the static array VALID_ACTIONS - Overrides:
- isActionValidin class- GenericHotDeploymentTool
- Returns:
- true if the action attribute is valid, false if not.
 
 
-