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.
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.
addVendorFiles
protected void addVendorFiles(Hashtable ejbFiles,
String ddPrefix)
Add any vendor specific files which should be included in the
EJB Jar.
- addVendorFiles in interface GenericDeploymentTool
checkConfiguration
protected void checkConfiguration(String descriptorFileName,
SAXParser saxParser)
throws BuildException
This method is called as the first step in the processDescriptor method
to allow vendor-specific subclasses to validate the task configuration
prior to processing the descriptor. If the configuration is invalid,
a BuildException should be thrown.
- checkConfiguration in interface GenericDeploymentTool
descriptorFileName
- String representing the file name of an EJB
descriptor to be processedsaxParser
- SAXParser which may be used to parse the XML
descriptor
BuildException
- Thrown if the configuration is invalid
getJarBaseName
protected String getJarBaseName(String descriptorFileName)
Using the EJB descriptor file name passed from the ejbjar
task, this method returns the "basename" which will be used to name the
completed JAR file.
- getJarBaseName in interface GenericDeploymentTool
descriptorFileName
- String representing the file name of an EJB
descriptor to be processed
- The "basename" which will be used to name the
completed JAR file
getVendorOutputJarFile
protected File getVendorOutputJarFile(String baseName)
Get the vendor specific name of the Jar that will be output. The modification date
of this jar will be checked against the dependent bean classes.
processDescriptor
public void processDescriptor(String aDescriptorName,
SAXParser saxParser)
Process a deployment descriptor, generating the necessary vendor specific
deployment files.
- processDescriptor in interface EJBDeploymentTool
- processDescriptor in interface GenericDeploymentTool
saxParser
- a SAX parser which can be used to parse the deployment descriptor.
registerKnownDTDs
protected void registerKnownDTDs(DescriptorHandler handler)
Register the locations of all known DTDs.
vendor-specific subclasses should override this method to define
the vendor-specific locations of the EJB DTDs
- registerKnownDTDs in interface GenericDeploymentTool
setAdditionalargs
public void setAdditionalargs(String aString)
Set the JonasDeploymentTool
.
aString
- additional args.
setJarsuffix
public void setJarsuffix(String aString)
Set the jar suffix
.
aString
- the string to use as the suffix.
setJavac
public void setJavac(String aString)
Set the java compiler JonasDeploymentTool
to use.
aString
- the java compiler.
setJavacopts
public void setJavacopts(String aString)
Set the options to pass to the java compiler.
aString
- the options.
setJonasroot
public void setJonasroot(File aFile)
Set the JOnAS root directory.
aFile
- the JOnAS root directory.
setKeepgenerated
public void setKeepgenerated(boolean aBoolean)
Set the JonasDeploymentTool
flag.
aBoolean
- true
if the flag must be set.
setKeepgeneric
public void setKeepgeneric(boolean aBoolean)
Set the JonasDeploymentTool
flag.
aBoolean
- true
if the flag must be set.
setNocompil
public void setNocompil(boolean aBoolean)
Set the JonasDeploymentTool
flag.
aBoolean
- true
if the flag must be set.
setNogenic
public void setNogenic(boolean aBoolean)
Set the JonasDeploymentTool
flag.
aBoolean
- true
if the flag must be set.
setNovalidation
public void setNovalidation(boolean aBoolean)
Set the JonasDeploymentTool
flag.
aBoolean
- true
if the flag must be set.
setOrb
public void setOrb(String aString)
Set the JonasDeploymentTool
to construct classpath.
aString
- 'RMI', 'JEREMIE', or 'DAVID'.
setRmicopts
public void setRmicopts(String aString)
Set the options to pass to the rmi compiler.
aString
- the options.
setSecpropag
public void setSecpropag(boolean aBoolean)
Set the JonasDeploymentTool
flag.
aBoolean
- true
if the flag must be set.
setVerbose
public void setVerbose(boolean aBoolean)
Set the JonasDeploymentTool
flag.
aBoolean
- true
if the flag must be set.
writeJar
protected void writeJar(String baseName,
File jarfile,
Hashtable ejbFiles,
String publicId)
throws BuildException
Method used to encapsulate the writing of the JAR file. Iterates over the
filenames/java.io.Files in the Hashtable stored on the instance variable
ejbFiles.
- writeJar in interface GenericDeploymentTool