org.apache.tools.ant.taskdefs.optional.ejb

Class JonasDeploymentTool

public class JonasDeploymentTool extends GenericDeploymentTool

The deployment tool to add the jonas specific deployment descriptors to the ejb JAR file. JONAS only requires one additional file jonas-ejb-jar.xml.

Version: 1.0

See Also: EjbJar

Field Summary
protected static StringDAVID_ORB
DAVID ORB.
protected static StringEJB_JAR_1_1_DTD
Name of the standard deployment descriptor DTD (these files are stored in the ${JONAS_ROOT}/xml directory).
protected static StringEJB_JAR_1_1_PUBLIC_ID
Public Id of the standard deployment descriptor DTD.
protected static StringEJB_JAR_2_0_DTD
protected static StringEJB_JAR_2_0_PUBLIC_ID
protected static StringGENIC_CLASS
GenIC class name (JOnAS 2.5)
protected static StringJEREMIE_ORB
JEREMIE ORB.
protected static StringJONAS_DD
Default JOnAS deployment descriptor name.
protected static StringJONAS_EJB_JAR_2_4_DTD
Name of the JOnAS-specific deployment descriptor DTD (these files are stored in the ${JONAS_ROOT}/xml directory).
protected static StringJONAS_EJB_JAR_2_4_PUBLIC_ID
Public Id of the JOnAS-specific deployment descriptor DTD.
protected static StringJONAS_EJB_JAR_2_5_DTD
protected static StringJONAS_EJB_JAR_2_5_PUBLIC_ID
protected static StringOLD_GENIC_CLASS_1
Old GenIC class name (JOnAS 2.4.x).
protected static StringOLD_GENIC_CLASS_2
Old GenIC class name.
protected static StringRMI_ORB
RMI ORB.
Method Summary
protected voidaddVendorFiles(Hashtable ejbFiles, String ddPrefix)
{@inheritDoc }.
protected voidcheckConfiguration(String descriptorFileName, SAXParser saxParser)
Verify the configuration.
protected StringgetJarBaseName(String descriptorFileName)
{@inheritDoc }.
protected FilegetVendorOutputJarFile(String baseName)
{@inheritDoc }.
voidprocessDescriptor(String aDescriptorName, SAXParser saxParser)
{@inheritDoc }.
protected voidregisterKnownDTDs(DescriptorHandler handler)
{@inheritDoc }.
voidsetAdditionalargs(String aString)
Sets the additional arguments.
voidsetJarsuffix(String aString)
Sets the jar suffix.
voidsetJavac(String aString)
Sets the java compiler to use.
voidsetJavacopts(String aString)
Set the options to pass to the java compiler.
voidsetJonasroot(File aFile)
Set the JOnAS root directory.
voidsetKeepgenerated(boolean aBoolean)
Sets the keepgenerated flag.
voidsetKeepgeneric(boolean aBoolean)
Sets the keepgeneric flag.
voidsetNocompil(boolean aBoolean)
Sets the nocompil flag.
voidsetNogenic(boolean aBoolean)
Sets the nogenic flag.
voidsetNovalidation(boolean aBoolean)
Sets the novalidation flag.
voidsetOrb(String aString)
Sets the orb to construct classpath.
voidsetRmicopts(String aString)
Set the options to pass to the rmi compiler.
voidsetSecpropag(boolean aBoolean)
Sets the secpropag flag.
voidsetVerbose(boolean aBoolean)
Sets the verbose flag.
protected voidwriteJar(String baseName, File jarfile, Hashtable ejbFiles, String publicId)
{@inheritDoc }.

Field Detail

DAVID_ORB

protected static final String DAVID_ORB
DAVID ORB.

EJB_JAR_1_1_DTD

protected static final String EJB_JAR_1_1_DTD
Name of the standard deployment descriptor DTD (these files are stored in the ${JONAS_ROOT}/xml directory).

EJB_JAR_1_1_PUBLIC_ID

protected static final String EJB_JAR_1_1_PUBLIC_ID
Public Id of the standard deployment descriptor DTD.

EJB_JAR_2_0_DTD

protected static final String EJB_JAR_2_0_DTD

EJB_JAR_2_0_PUBLIC_ID

protected static final String EJB_JAR_2_0_PUBLIC_ID

GENIC_CLASS

protected static final String GENIC_CLASS
GenIC class name (JOnAS 2.5)

JEREMIE_ORB

protected static final String JEREMIE_ORB
JEREMIE ORB.

JONAS_DD

protected static final String JONAS_DD
Default JOnAS deployment descriptor name.

JONAS_EJB_JAR_2_4_DTD

protected static final String JONAS_EJB_JAR_2_4_DTD
Name of the JOnAS-specific deployment descriptor DTD (these files are stored in the ${JONAS_ROOT}/xml directory).

JONAS_EJB_JAR_2_4_PUBLIC_ID

protected static final String JONAS_EJB_JAR_2_4_PUBLIC_ID
Public Id of the JOnAS-specific deployment descriptor DTD.

JONAS_EJB_JAR_2_5_DTD

protected static final String JONAS_EJB_JAR_2_5_DTD

JONAS_EJB_JAR_2_5_PUBLIC_ID

protected static final String JONAS_EJB_JAR_2_5_PUBLIC_ID

OLD_GENIC_CLASS_1

protected static final String OLD_GENIC_CLASS_1
Old GenIC class name (JOnAS 2.4.x).

OLD_GENIC_CLASS_2

protected static final String OLD_GENIC_CLASS_2
Old GenIC class name.

RMI_ORB

protected static final String RMI_ORB
RMI ORB.

Method Detail

addVendorFiles

protected void addVendorFiles(Hashtable ejbFiles, String ddPrefix)
{@inheritDoc }.

checkConfiguration

protected void checkConfiguration(String descriptorFileName, SAXParser saxParser)
Verify the configuration.

Parameters: descriptorFileName the name of the descriptor file. saxParser not used.

Throws: BuildException if there is an error.

getJarBaseName

protected String getJarBaseName(String descriptorFileName)
{@inheritDoc }.

getVendorOutputJarFile

protected File getVendorOutputJarFile(String baseName)
{@inheritDoc }.

processDescriptor

public void processDescriptor(String aDescriptorName, SAXParser saxParser)
{@inheritDoc }.

registerKnownDTDs

protected void registerKnownDTDs(DescriptorHandler handler)
{@inheritDoc }.

setAdditionalargs

public void setAdditionalargs(String aString)
Sets the additional arguments.

Parameters: aString additional args.

setJarsuffix

public void setJarsuffix(String aString)
Sets the jar suffix.

Parameters: aString the string to use as the suffix.

setJavac

public void setJavac(String aString)
Sets the java compiler to use.

Parameters: aString the java compiler.

setJavacopts

public void setJavacopts(String aString)
Set the options to pass to the java compiler.

Parameters: aString the options.

setJonasroot

public void setJonasroot(File aFile)
Set the JOnAS root directory.

Parameters: aFile the JOnAS root directory.

setKeepgenerated

public void setKeepgenerated(boolean aBoolean)
Sets the keepgenerated flag.

Parameters: aBoolean true if the flag must be set.

setKeepgeneric

public void setKeepgeneric(boolean aBoolean)
Sets the keepgeneric flag.

Parameters: aBoolean true if the flag must be set.

setNocompil

public void setNocompil(boolean aBoolean)
Sets the nocompil flag.

Parameters: aBoolean true if the flag must be set.

setNogenic

public void setNogenic(boolean aBoolean)
Sets the nogenic flag.

Parameters: aBoolean true if the flag must be set.

setNovalidation

public void setNovalidation(boolean aBoolean)
Sets the novalidation flag.

Parameters: aBoolean true if the flag must be set.

setOrb

public void setOrb(String aString)
Sets the orb to construct classpath.

Parameters: aString 'RMI', 'JEREMIE', or 'DAVID'.

setRmicopts

public void setRmicopts(String aString)
Set the options to pass to the rmi compiler.

Parameters: aString the options.

setSecpropag

public void setSecpropag(boolean aBoolean)
Sets the secpropag flag.

Parameters: aBoolean true if the flag must be set.

setVerbose

public void setVerbose(boolean aBoolean)
Sets the verbose flag.

Parameters: aBoolean true if the flag must be set.

writeJar

protected void writeJar(String baseName, File jarfile, Hashtable ejbFiles, String publicId)
{@inheritDoc }.