Top Description Fields Constructors Methods
org.apache.tools.ant.taskdefs.optional.j2ee

public Class JonasHotDeploymentTool

extends GenericHotDeploymentTool
implements HotDeploymentTool
Class Inheritance
All Implemented Interfaces
org.apache.tools.ant.taskdefs.optional.j2ee.HotDeploymentTool
Imports
java.io.File, org.apache.tools.ant.BuildException, org.apache.tools.ant.taskdefs.Java, org.apache.tools.ant.types.Path

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
org.apache.tools.ant.taskdefs.optional.j2ee.HotDeploymentTool, org.apache.tools.ant.taskdefs.optional.j2ee.AbstractHotDeploymentTool, org.apache.tools.ant.taskdefs.optional.j2ee.ServerDeploy

Field Summary

Modifier and TypeField and Description
private String
davidHost

Description of the Field

private int
davidPort

Description of the Field

protected static final String
DEFAULT_ORB

Description of the Field

private static final String
JONAS_DEPLOY_CLASS_NAME

The classname of the tool to run *

private File
jonasroot

Description of the Field

private String
orb

Description of the Field

private static final String[]

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Path

Returns:

A Path representing the "classpath" attribute.
getClasspath
()

Overrides org.apache.tools.ant.taskdefs.optional.j2ee.AbstractHotDeploymentTool.getClasspath.

gets the classpath field.
protected boolean

Returns:

true if the action attribute is valid, false if not.
isActionValid
()

Overrides org.apache.tools.ant.taskdefs.optional.j2ee.GenericHotDeploymentTool.isActionValid.

Determines if the action supplied is valid.
public void
setDavidhost(final String
The new davidhost value
inValue
)

Set the host for the David ORB; required if ORB==david.

public void
setDavidport(final int
The new davidport value
inValue
)

Set the port for the David ORB; required if ORB==david.

public void
setJonasroot(final File
The new jonasroot value
inValue
)

set the jonas root directory (-Dinstall.root=).

public void
setOrb(final String
RMI, JEREMIE, DAVID,...
inValue
)

Choose your ORB : RMI, JEREMIE, DAVID, ...; optional.

public void
Inherited from org.apache.tools.ant.taskdefs.optional.j2ee.GenericHotDeploymentTool:
createArgcreateJvmargdeploygetClassNamegetJavasetClassNamesetTask

Field Detail

davidHostback to summary
private String davidHost

Description of the Field

davidPortback to summary
private int davidPort

Description of the Field

DEFAULT_ORBback to summary
protected static final String DEFAULT_ORB

Description of the Field

JONAS_DEPLOY_CLASS_NAMEback to summary
private static final String JONAS_DEPLOY_CLASS_NAME

The classname of the tool to run *

jonasrootback to summary
private File jonasroot

Description of the Field

orbback to summary
private String orb

Description of the Field

VALID_ACTIONSback to summary
private static final String[] VALID_ACTIONS

Hides org.apache.tools.ant.taskdefs.optional.j2ee.GenericHotDeploymentTool.VALID_ACTIONS.

All the valid actions that weblogic.deploy permits *

Constructor Detail

JonasHotDeploymentToolback to summary
public JonasHotDeploymentTool()

Method Detail

getClasspathback to summary
public Path getClasspath()

Overrides org.apache.tools.ant.taskdefs.optional.j2ee.AbstractHotDeploymentTool.getClasspath.

gets the classpath field.

Returns:Path

A Path representing the "classpath" attribute.

Annotations
@Override
isActionValidback to summary
protected boolean isActionValid()

Overrides org.apache.tools.ant.taskdefs.optional.j2ee.GenericHotDeploymentTool.isActionValid.

Determines if the action supplied is valid.

Valid actions are contained in the static array VALID_ACTIONS

Returns:boolean

true if the action attribute is valid, false if not.

Annotations
@Override
setDavidhostback to summary
public void setDavidhost(final String inValue)

Set the host for the David ORB; required if ORB==david.

Parameters
inValue:String

The new davidhost value

setDavidportback to summary
public void setDavidport(final int inValue)

Set the port for the David ORB; required if ORB==david.

Parameters
inValue:int

The new davidport value

setJonasrootback to summary
public void setJonasroot(final File inValue)

set the jonas root directory (-Dinstall.root=). This element is required.

Parameters
inValue:File

The new jonasroot value

setOrbback to summary
public void setOrb(final String inValue)

Choose 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:String

RMI, JEREMIE, DAVID,...

validateAttributesback to summary
public void validateAttributes() throws BuildException

Overrides org.apache.tools.ant.taskdefs.optional.j2ee.GenericHotDeploymentTool.validateAttributes.

Implements org.apache.tools.ant.taskdefs.optional.j2ee.HotDeploymentTool.validateAttributes.

Validates the passed in attributes.

The rules are:

  1. If action is "deploy" or "update" the "application" and "source" attributes must be supplied.
  2. If action is "delete" or "undeploy" the "application" attribute must be supplied.
Annotations
@Override
Exceptions
BuildException:
if something goes wrong