Public Member Functions | |
JonasDeploymentTool | createJonas () |
Path | createClasspath () |
DTDLocation | createDTD () |
FileSet | createSupport () |
void | setManifest (File manifest) |
void | setSrcdir (File inDir) |
void | setDescriptordir (File inDir) |
void | setDependency (String analyzer) |
void | setBasejarname (String inValue) |
void | setNaming (NamingScheme namingScheme) |
File | getDestdir () |
void | setDestdir (File inDir) |
String | getCmpversion () |
void | setCmpversion (CMPVersion version) |
void | setClasspath (Path classpath) |
void | setFlatdestdir (boolean inValue) |
void | setGenericjarsuffix (String inString) |
void | setBasenameterminator (String inValue) |
void | execute () throws BuildException |
Protected Member Functions | |
void | addDeploymentTool (EJBDeploymentTool deploymentTool) |
Extends the MatchingTask class provided in the default ant distribution to provide a directory scanning EJB jarfile generator.
The task works by taking the deployment descriptors one at a time and parsing them to locate the names of the classes which should be placed in the jar. The classnames are translated to java.io.Files by replacing periods with File.separatorChar and resolving the generated filename as a relative path under the srcDir attribute. All necessary files are then assembled into a jarfile. One jarfile is constructed for each deployment descriptor found.
Conor MacNeill
Definition at line 96 of file EjbJar.java.
|
Add a deployment tool to the list of deployment tools that will be processed
Definition at line 251 of file EjbJar.java. Referenced by org.objectweb.jonas.ant.EjbJar.createJonas(). |
|
Adds to the classpath used to locate the super classes and interfaces of the classes that will make up the EJB JAR.
Definition at line 275 of file EjbJar.java. |
|
Create a DTD location record. This stores the location of a DTD. The DTD is identified by its public Id. The location may either be a file location or a resource location.
Definition at line 289 of file EjbJar.java. |
|
Adds a deployment tool for JOnAS server.
Definition at line 261 of file EjbJar.java. References org.objectweb.jonas.ant.EjbJar.addDeploymentTool(). |
Here is the call graph for this function:
|
Adds a fileset for support elements.
Definition at line 301 of file EjbJar.java. |
|
Invoked by Ant after the task is prepared, when it is ready to execute this task. This will configure all of the nested deployment tools to allow them to process the jar. If no deployment tools have been configured a generic tool is created to handle the jar. A parser is configured and then each descriptor found is passed to all the deployment tool elements for processing.
Definition at line 527 of file EjbJar.java. References org.objectweb.jonas.ant.GenericDeploymentTool.configure(), org.objectweb.jonas.ant.GenericDeploymentTool.processDescriptor(), org.objectweb.jonas.ant.GenericDeploymentTool.setDestdir(), org.objectweb.jonas.ant.GenericDeploymentTool.setGenericJarSuffix(), org.objectweb.jonas.ant.GenericDeploymentTool.setTask(), and org.objectweb.jonas.ant.GenericDeploymentTool.validateConfigured(). |
Here is the call graph for this function:
|
Gets the CMP version.
Definition at line 421 of file EjbJar.java. |
|
Gets the destination directory.
Definition at line 397 of file EjbJar.java. |
|
Set the base name of the EJB JAR that is to be created if it is not to be determined from the name of the deployment descriptor files.
Definition at line 363 of file EjbJar.java. |
|
The string which terminates the bean name. The convention used by this task is that bean descriptors are named as the BeanName with some suffix. The baseNameTerminator string separates the bean name and the suffix and is used to determine the bean name.
Definition at line 484 of file EjbJar.java. |
|
Set the classpath to use when resolving classes for inclusion in the jar.
Definition at line 443 of file EjbJar.java. |
|
Sets the CMP version.
Definition at line 434 of file EjbJar.java. |
|
Set the analyzer to use when adding in dependencies to the JAR.
Definition at line 352 of file EjbJar.java. |
|
Set the descriptor directory. The descriptor directory contains the EJB deployment descriptors. These are XML files that declare the properties of a bean in a particular deployment scenario. Such properties include, for example, the transactional nature of the bean and the security access control to the bean's methods.
Definition at line 343 of file EjbJar.java. |
|
Set the destination directory. The EJB jar files will be written into this directory. The jar files that exist in this directory are also used when determining if the contents of the jar file have changed. Note that this parameter is only used if no deployment tools are specified. Typically each deployment tool will specify its own destination directory.
Definition at line 411 of file EjbJar.java. |
|
Controls whether the destination JARs are written out in the destination directory with the same hierarchical structure from which the deployment descriptors have been read. If this is set to true the generated EJB jars are written into the root of the destination directory, otherwise they are written out in the same relative position as the deployment descriptors in the descriptor directory.
Definition at line 458 of file EjbJar.java. |
|
Set the suffix for the generated jar file. When generic jars are generated, they have a suffix which is appended to the the bean name to create the name of the jar file. Note that this suffix includes the extension fo te jar file and should therefore end with an appropriate extension such as .jar or .ear
Definition at line 471 of file EjbJar.java. |
|
Set the Manifest file to use when jarring. As of EJB 1.1, manifest files are no longer used to configure the EJB. However, they still have a vital importance if the EJB is intended to be packaged in an EAR file. By adding "Class-Path" settings to a Manifest file, the EJB can look for classes inside the EAR file itself, allowing for easier deployment. This is outlined in the J2EE specification, and all J2EE components are meant to support it.
Definition at line 319 of file EjbJar.java. |
|
Set the naming scheme used to determine the name of the generated jars from the deployment descriptor
Definition at line 381 of file EjbJar.java. |
|
Sets the source directory, which is the directory that contains the classes that will be added to the EJB jar. Typically this will include the home and remote interfaces and the bean class.
Definition at line 330 of file EjbJar.java. |