Inheritance diagram for org.objectweb.jonas.ant.GenericDeploymentTool:
Public Member Functions | |
void | setDestdir (File inDir) |
void | setTask (Task task) |
void | setGenericJarSuffix (String inString) |
Path | createClasspath () |
void | setClasspath (Path classpath) |
void | configure (EjbJar.Config config) |
String | getVendorDDPrefix (String baseName, String descriptorFileName) |
void | validateConfigured () throws BuildException |
Static Public Attributes | |
final String | ANALYZER_SUPER = "super" |
final String | ANALYZER_FULL = "full" |
final String | ANALYZER_NONE = "none" |
final String | DEFAULT_ANALYZER = ANALYZER_SUPER |
final String | ANALYZER_CLASS_SUPER = "org.apache.tools.ant.util.depend.bcel.AncestorAnalyzer" |
final String | ANALYZER_CLASS_FULL = "org.apache.tools.ant.util.depend.bcel.FullAnalyzer" |
Protected Member Functions | |
File | getDestDir () |
Task | getTask () |
EjbJar.Config | getConfig () |
boolean | usingBaseJarName () |
Path | getCombinedClasspath () |
void | log (String message, int level) |
Location | getLocation () |
void | addFileToJar (JarOutputStream jStream, File inputFile, String logicalFilename) throws BuildException |
void | registerKnownDTDs (DescriptorHandler handler) |
void | checkConfiguration (String descriptorFileName, SAXParser saxParser) throws BuildException |
Hashtable | parseEjbFiles (String descriptorFileName, SAXParser saxParser) throws IOException, SAXException |
void | addSupportClasses (Hashtable ejbFiles) |
String | getJarBaseName (String descriptorFileName) |
void | addVendorFiles (Hashtable ejbFiles, String ddPrefix) |
boolean | needToRebuild (Hashtable ejbFiles, File jarFile) |
String | getPublicId () |
File | getManifestFile (String prefix) |
void | writeJar (String baseName, File jarfile, Hashtable files, String publicId, boolean includeInnerClasses) throws BuildException |
void | checkAndAddDependants (Hashtable checkEntries) throws BuildException |
ClassLoader | getClassLoaderForBuild () |
Static Protected Attributes | |
final String | META_DIR = "META-INF/" |
final String | MANIFEST = META_DIR + "MANIFEST.MF" |
final String | EJB_DD = "ejb-jar.xml" |
Package Functions | |
File | getVendorOutputJarFile (String baseName) |
Definition at line 63 of file GenericDeploymentTool.java.
|
Utility method that encapsulates the logic of adding a file entry to a .jar file. Used by execute() to add entries to the jar file as it is constructed.
Definition at line 324 of file GenericDeploymentTool.java. References org.objectweb.jonas.ant.GenericDeploymentTool.log(). Referenced by org.objectweb.jonas.ant.GenericDeploymentTool.writeJar(). |
Here is the call graph for this function:
|
Adds any classes the user specifies using support nested elements to the
Definition at line 549 of file GenericDeploymentTool.java. |
|
Add any vendor specific files which should be included in the EJB Jar. Reimplemented in org.objectweb.jonas.ant.JonasDeploymentTool. Definition at line 653 of file GenericDeploymentTool.java. |
|
Add all available classes, that depend on Remote, Home, Bean, PK
Definition at line 854 of file GenericDeploymentTool.java. References org.objectweb.jonas.ant.GenericDeploymentTool.log(). |
Here is the call graph for this function:
|
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.
Reimplemented in org.objectweb.jonas.ant.JonasDeploymentTool. Definition at line 487 of file GenericDeploymentTool.java. |
|
Configure this tool for use in the ejbjar task.
Definition at line 305 of file GenericDeploymentTool.java. References org.objectweb.jonas.ant.EjbJar.config. Referenced by org.objectweb.jonas.ant.EjbJar.execute(). |
|
Add the classpath for the user classes
Definition at line 206 of file GenericDeploymentTool.java. Referenced by org.objectweb.jonas.ant.JonasDeploymentTool.setClasspathref(). |
|
Returns a Classloader object which parses the passed in generic EjbJar classpath. The loader is used to dynamically load classes from javax.ejb.* and the classes being added to the jar. Definition at line 898 of file GenericDeploymentTool.java. References org.objectweb.jonas.ant.GenericDeploymentTool.getCombinedClasspath(), and org.objectweb.jonas.ant.GenericDeploymentTool.getTask(). |
Here is the call graph for this function:
|
Get the classpath by combining the one from the surrounding task, if any and the one from this tool.
Definition at line 228 of file GenericDeploymentTool.java. Referenced by org.objectweb.jonas.ant.GenericDeploymentTool.getClassLoaderForBuild(). |
|
Get the basename terminator.
Definition at line 179 of file GenericDeploymentTool.java. Referenced by org.objectweb.jonas.ant.JonasDeploymentTool.addVendorFiles(), org.objectweb.jonas.ant.JonasDeploymentTool.getJarBaseName(), and org.objectweb.jonas.ant.GenericDeploymentTool.getManifestFile(). |
|
Get the destination directory.
Definition at line 151 of file GenericDeploymentTool.java. Referenced by org.objectweb.jonas.ant.JonasDeploymentTool.getVendorOutputJarFile(). |
|
Using the EJB descriptor file name passed from the
Reimplemented in org.objectweb.jonas.ant.JonasDeploymentTool. Definition at line 575 of file GenericDeploymentTool.java. References org.objectweb.jonas.ant.DescriptorHandler.getEjbName(). |
Here is the call graph for this function:
|
Get the build file location associated with this element's task.
Definition at line 256 of file GenericDeploymentTool.java. References org.objectweb.jonas.ant.GenericDeploymentTool.getTask(). Referenced by org.objectweb.jonas.ant.GenericDeploymentTool.validateConfigured(), and org.objectweb.jonas.ant.GenericDeploymentTool.writeJar(). |
Here is the call graph for this function:
|
Get the manifets file to use for building the generic jar. If the file does not exist the global manifest from the config is used otherwise the default Ant manifest will be used.
Definition at line 725 of file GenericDeploymentTool.java. References org.objectweb.jonas.ant.GenericDeploymentTool.getConfig(). |
Here is the call graph for this function:
|
Returns the Public ID of the DTD specified in the EJB descriptor. Not every vendor-specific
Definition at line 710 of file GenericDeploymentTool.java. References org.objectweb.jonas.ant.DescriptorHandler.getPublicId(). |
Here is the call graph for this function:
|
Get the task for this tool.
Definition at line 170 of file GenericDeploymentTool.java. Referenced by org.objectweb.jonas.ant.GenericDeploymentTool.getClassLoaderForBuild(), org.objectweb.jonas.ant.GenericDeploymentTool.getLocation(), and org.objectweb.jonas.ant.GenericDeploymentTool.log(). |
|
Get the prefix for vendor deployment descriptors. This will contain the path and the start of the descriptor name, depending on the naming scheme Definition at line 630 of file GenericDeploymentTool.java. |
|
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. Reimplemented in org.objectweb.jonas.ant.JonasDeploymentTool. Definition at line 662 of file GenericDeploymentTool.java. |
|
Log a message to the Ant output.
Definition at line 247 of file GenericDeploymentTool.java. References org.objectweb.jonas.ant.GenericDeploymentTool.getTask(). Referenced by org.objectweb.jonas.ant.GenericDeploymentTool.addFileToJar(), org.objectweb.jonas.ant.JonasDeploymentTool.addVendorFiles(), org.objectweb.jonas.ant.GenericDeploymentTool.checkAndAddDependants(), org.objectweb.jonas.ant.JonasDeploymentTool.getJarBaseName(), org.objectweb.jonas.ant.GenericDeploymentTool.needToRebuild(), org.objectweb.jonas.ant.JonasDeploymentTool.setMappernames(), org.objectweb.jonas.ant.JonasDeploymentTool.writeJar(), and org.objectweb.jonas.ant.GenericDeploymentTool.writeJar(). |
Here is the call graph for this function:
|
This method checks the timestamp on each file listed in the
Definition at line 681 of file GenericDeploymentTool.java. References org.objectweb.jonas.ant.GenericDeploymentTool.log(). |
Here is the call graph for this function:
|
This method returns a list of EJB files found when the specified EJB descriptor is parsed and processed.
Definition at line 512 of file GenericDeploymentTool.java. References org.objectweb.jonas.ant.DescriptorHandler.getFiles(). |
Here is the call graph for this function:
|
Register the locations of all known DTDs. vendor-specific subclasses should override this method to define the vendor-specific locations of the EJB DTDs Reimplemented in org.objectweb.jonas.ant.JonasDeploymentTool. Definition at line 384 of file GenericDeploymentTool.java. |
|
Set the classpath to be used for this compilation.
Definition at line 218 of file GenericDeploymentTool.java. |
|
Set the destination directory; required.
Definition at line 142 of file GenericDeploymentTool.java. Referenced by org.objectweb.jonas.ant.EjbJar.execute(). |
|
Set the suffix for the generated jar file.
Definition at line 197 of file GenericDeploymentTool.java. References org.objectweb.jonas.ant.EjbJar.genericJarSuffix. Referenced by org.objectweb.jonas.ant.EjbJar.execute(). |
|
Set the task which owns this tool
Definition at line 161 of file GenericDeploymentTool.java. Referenced by org.objectweb.jonas.ant.EjbJar.execute(). |
|
Indicate if this build is using the base jar name.
Definition at line 189 of file GenericDeploymentTool.java. |
|
Called to validate that the tool parameters have been configured.
Definition at line 922 of file GenericDeploymentTool.java. References org.objectweb.jonas.ant.GenericDeploymentTool.getLocation(). Referenced by org.objectweb.jonas.ant.EjbJar.execute(). |
Here is the call graph for this function:
|
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.
Reimplemented in org.objectweb.jonas.ant.JonasDeploymentTool. Definition at line 744 of file GenericDeploymentTool.java. References org.objectweb.jonas.ant.GenericDeploymentTool.addFileToJar(), org.objectweb.jonas.ant.GenericDeploymentTool.getLocation(), org.objectweb.jonas.ant.GenericDeploymentTool.log(), and org.objectweb.jonas.ant.GenericDeploymentTool.MANIFEST. |
Here is the call graph for this function:
|
The analyzer class for the super analyzer Definition at line 88 of file GenericDeploymentTool.java. |
|
The analyzer class for the super analyzer Definition at line 85 of file GenericDeploymentTool.java. |
|
A dependency analyzer name to find all related classes Definition at line 76 of file GenericDeploymentTool.java. |
|
A dependency analyzer name for no analyzer Definition at line 78 of file GenericDeploymentTool.java. |
|
A dependency analyzer name to find ancestor classes Definition at line 74 of file GenericDeploymentTool.java. |
|
The default analyzer Definition at line 81 of file GenericDeploymentTool.java. |
|
Name for EJB Deployment descriptor within EJB jars Definition at line 71 of file GenericDeploymentTool.java. |
|
The standard MANIFEST file Definition at line 68 of file GenericDeploymentTool.java. Referenced by org.objectweb.jonas.ant.GenericDeploymentTool.writeJar(). |
|
The standard META-INF directory in jar files Definition at line 65 of file GenericDeploymentTool.java. |