| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private String | additionalJvmArgs
additional args to pass to the spawned jvm |
| private boolean | |
| private String | |
| protected static final String | |
| protected static final String | |
| protected static final String | |
| protected static final String | |
| protected static final String | DEFAULT_WL51_EJB11_DTD_LOCATION
WebLogic 5.1 dtd location |
| protected static final String | |
| protected static final String | |
| protected static final String | DEFAULT_WL60_EJB11_DTD_LOCATION
WebLogic 6.0 ejb 1.1 dtd location |
| protected static final String | DEFAULT_WL60_EJB20_DTD_LOCATION
WebLogic 6.0 ejb 2.0 dtd location |
| protected static final String | |
| private String | ejb11DTD
Instance variable that stores the location of the EJB 1.1 DTD file. |
| private String | ejbcClass
Instance variable that stores the fully qualified classname of the WebLogic EJBC compiler |
| private static final FileUtils | FILE_UTILS
File utilities instance for copying jars |
| private String | jarSuffix
Instance variable that stores the suffix for the WebLogic jarfile. |
| private Integer | jvmDebugLevel
The weblogic.StdoutSeverityLevel to use when running the JVM that executes ejbc. |
| private boolean | keepgenerated
Instance variable that determines whether generic ejb jars are kept. |
| private boolean | |
| private boolean | newCMP
Indicates if the old CMP location convention is to be used. |
| private boolean | noEJBC
controls whether ejbc is run on the generated jar |
| private File | |
| public static final String | PUBLICID_EJB11
EJB11 id |
| public static final String | PUBLICID_EJB20
EJB20 id |
| public static final String | PUBLICID_WEBLOGIC_EJB510
WebLogic 5.1.0 id |
| public static final String | PUBLICID_WEBLOGIC_EJB600
WebLogic 6.0.0 id |
| public static final String | PUBLICID_WEBLOGIC_EJB700
WebLogic 7.0.0 id |
| private List | sysprops
System properties for the JVM. |
| private String | weblogicDTD
Instance variable that stores the location of the WebLogic DTD file. |
| protected static final String | |
| protected static final String | |
| private Path | wlClasspath
The classpath to the WebLogic classes. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| protected void | addVendorFiles(Hashtable<String, File>
the hash table to be populated. ejbFiles, String the prefix to use. ddPrefix)Overrides org. |
| private void | buildWeblogicJar(File
java.io.File representing the source (EJB1.1) jarfile. sourceJar, File java.io.File representing the destination, WebLogic
jarfile. destJar, String publicId)Helper method invoked by execute() for each WebLogic jar to be built. |
| public Path | Returns: the classpath to configure.Get the classpath to the WebLogic classpaths. |
| protected ClassLoader | Returns: the classloader for the jarfile.java.io.File representing jar file to get classes from. classjar)Helper method invoked by isRebuildRequired to get a ClassLoader for a Jar File passed to it. |
| public String | |
| public Integer | |
| pack-priv File | getVendorOutputJarFile(String
the basename to use. baseName)Overrides org. |
| protected DescriptorHandler | Returns: the descriptor.the source directory. srcDir)
Deprecated
as a consequence of
Get the WebLogic descriptor handler.
DescriptorHandler being deprecated.
|
| protected boolean | Returns: true if the jar needs to be rebuilt.java.io.File The generic jar file. genericJarFile, File java.io.File The WebLogic jar file to check to
see if it needs to be rebuilt. weblogicJarFile)Helper method to check to see if a WebLogic EJB 1.1 jar needs to be rebuilt using ejbc. |
| protected void | registerKnownDTDs(DescriptorHandler
the handler to use. handler)Overrides org.
Deprecated
as a consequence of
Register the DTDs.
DescriptorHandler being deprecated.
|
| public void | |
| public void | setCompiler(String
the compiler to be used. compiler)The compiler (switch |
| public void | setEjbcClass(String
the name of the class to use. ejbcClass)Set the classname of the ejbc compiler; optional Normally ejbjar determines the appropriate class based on the DTD used for the EJB. |
| public void | |
| public void | setJvmargs(String
the arguments to be passed to the JVM args)Set any additional arguments to pass to the WebLogic JVM; optional. |
| public void | setJvmDebugLevel(Integer
the value to use. jvmDebugLevel)Sets the weblogic.StdoutSeverityLevel to use when running the JVM that executes ejbc; optional. |
| public void | setKeepgenerated(String
either 'true' or 'false' inValue)Controls whether WebLogic will keep the generated Java files used to build the class files added to the jar. |
| public void | setKeepgeneric(boolean
true for keep generic inValue)controls whether the generic file used as input to ejbc is retained; defaults to false |
| public void | setNewCMP(boolean
a newCMP)boolean value.If this is set to true, the new method for locating CMP descriptors will be used; optional, default false. |
| public void | setNoEJBC(boolean
a noEJBC)boolean value.Do not EJBC the jar after it has been put together; optional, default false |
| public void | |
| public void | setOutputDir(File
the directory to be used. outputDir)If set ejbc will use this directory as the output destination rather than a jar file. |
| public void | setRebuild(boolean
a rebuild)boolean value.Set the rebuild flag to false to only update changes in the jar rather than rerunning ejbc; optional, default true. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | validateConfigured()
Overrides org. Implements org. |
| protected void | writeJar(String
the base name. baseName, File the jar file to populate. jarFile, Hashtable<String, File> the hash table of files to write. files, String the id to use. publicId)Overrides org. |
| additionalArgs | back to summary |
|---|---|
| private String additionalArgs | |
| additionalJvmArgs | back to summary |
|---|---|
| private String additionalJvmArgs additional args to pass to the spawned jvm | |
| alwaysRebuild | back to summary |
|---|---|
| private boolean alwaysRebuild | |
| compiler | back to summary |
|---|---|
| private String compiler | |
| COMPILER_EJB11 | back to summary |
|---|---|
| protected static final String COMPILER_EJB11 | |
| COMPILER_EJB20 | back to summary |
|---|---|
| protected static final String COMPILER_EJB20 | |
| DEFAULT_COMPILER | back to summary |
|---|---|
| protected static final String DEFAULT_COMPILER | |
| DEFAULT_WL51_DTD_LOCATION | back to summary |
|---|---|
| protected static final String DEFAULT_WL51_DTD_LOCATION | |
| DEFAULT_WL51_EJB11_DTD_LOCATION | back to summary |
|---|---|
| protected static final String DEFAULT_WL51_EJB11_DTD_LOCATION WebLogic 5.1 dtd location | |
| DEFAULT_WL60_51_DTD_LOCATION | back to summary |
|---|---|
| protected static final String DEFAULT_WL60_51_DTD_LOCATION | |
| DEFAULT_WL60_DTD_LOCATION | back to summary |
|---|---|
| protected static final String DEFAULT_WL60_DTD_LOCATION | |
| DEFAULT_WL60_EJB11_DTD_LOCATION | back to summary |
|---|---|
| protected static final String DEFAULT_WL60_EJB11_DTD_LOCATION WebLogic 6.0 ejb 1.1 dtd location | |
| DEFAULT_WL60_EJB20_DTD_LOCATION | back to summary |
|---|---|
| protected static final String DEFAULT_WL60_EJB20_DTD_LOCATION WebLogic 6.0 ejb 2.0 dtd location | |
| DEFAULT_WL70_DTD_LOCATION | back to summary |
|---|---|
| protected static final String DEFAULT_WL70_DTD_LOCATION | |
| ejb11DTD | back to summary |
|---|---|
| private String ejb11DTD Instance variable that stores the location of the EJB 1.1 DTD file. | |
| ejbcClass | back to summary |
|---|---|
| private String ejbcClass Instance variable that stores the fully qualified classname of the WebLogic EJBC compiler | |
| FILE_UTILS | back to summary |
|---|---|
| private static final FileUtils FILE_UTILS File utilities instance for copying jars | |
| jarSuffix | back to summary |
|---|---|
| private String jarSuffix Instance variable that stores the suffix for the WebLogic jarfile. | |
| jvmDebugLevel | back to summary |
|---|---|
| private Integer jvmDebugLevel The weblogic.StdoutSeverityLevel to use when running the JVM that executes ejbc. Set to 16 to avoid the warnings about EJB Home and Remotes being in the classpath | |
| keepgenerated | back to summary |
|---|---|
| private boolean keepgenerated Instance variable that determines whether generic ejb jars are kept. | |
| keepGeneric | back to summary |
|---|---|
| private boolean keepGeneric | |
| newCMP | back to summary |
|---|---|
| private boolean newCMP Indicates if the old CMP location convention is to be used. | |
| noEJBC | back to summary |
|---|---|
| private boolean noEJBC controls whether ejbc is run on the generated jar | |
| outputDir | back to summary |
|---|---|
| private File outputDir | |
| PUBLICID_EJB11 | back to summary |
|---|---|
| public static final String PUBLICID_EJB11 EJB11 id | |
| PUBLICID_EJB20 | back to summary |
|---|---|
| public static final String PUBLICID_EJB20 EJB20 id | |
| PUBLICID_WEBLOGIC_EJB510 | back to summary |
|---|---|
| public static final String PUBLICID_WEBLOGIC_EJB510 WebLogic 5.1.0 id | |
| PUBLICID_WEBLOGIC_EJB600 | back to summary |
|---|---|
| public static final String PUBLICID_WEBLOGIC_EJB600 WebLogic 6.0.0 id | |
| PUBLICID_WEBLOGIC_EJB700 | back to summary |
|---|---|
| public static final String PUBLICID_WEBLOGIC_EJB700 WebLogic 7.0.0 id | |
| sysprops | back to summary |
|---|---|
| private List<Environment. System properties for the JVM. | |
| weblogicDTD | back to summary |
|---|---|
| private String weblogicDTD Instance variable that stores the location of the WebLogic DTD file. | |
| WL_CMP_DD | back to summary |
|---|---|
| protected static final String WL_CMP_DD | |
| WL_DD | back to summary |
|---|---|
| protected static final String WL_DD | |
| wlClasspath | back to summary |
|---|---|
| private Path wlClasspath The classpath to the WebLogic classes. | |
| WeblogicDeploymentTool | back to summary |
|---|---|
| public WeblogicDeploymentTool() | |
| addSysproperty | back to summary |
|---|---|
| public void addSysproperty(Environment. Add a nested sysproperty element.
| |
| addVendorFiles | back to summary |
|---|---|
| protected void addVendorFiles(Hashtable<String, File> ejbFiles, String ddPrefix) Overrides org. Add any vendor specific files which should be included in the EJB Jar. | |
| buildWeblogicJar | back to summary |
|---|---|
| private void buildWeblogicJar(File sourceJar, File destJar, String publicId) Helper method invoked by execute() for each WebLogic jar to be built. Encapsulates the logic of constructing a java task for calling weblogic.ejbc and executing it. | |
| createWLClasspath | back to summary |
|---|---|
| public Path createWLClasspath() Get the classpath to the WebLogic classpaths.
| |
| getClassLoaderFromJar | back to summary |
|---|---|
| protected ClassLoader getClassLoaderFromJar(File classjar) throws IOException Helper method invoked by isRebuildRequired to get a ClassLoader for a Jar File passed to it.
| |
| getEjbcClass | back to summary |
|---|---|
| public String getEjbcClass() Get the ejbc compiler class.
| |
| getJvmDebugLevel | back to summary |
|---|---|
| public Integer getJvmDebugLevel() Get the debug level.
| |
| getVendorOutputJarFile | back to summary |
|---|---|
| pack-priv File getVendorOutputJarFile(String baseName) Overrides org. 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.
| |
| getWeblogicDescriptorHandler | back to summary |
|---|---|
| protected DescriptorHandler getWeblogicDescriptorHandler(final File srcDir)
Deprecated as a consequence of Get the WebLogic descriptor handler.
| |
| isRebuildRequired | back to summary |
|---|---|
| protected boolean isRebuildRequired(File genericJarFile, File weblogicJarFile) Helper method to check to see if a WebLogic EJB 1.1 jar needs to be rebuilt using ejbc. Called from writeJar it sees if the "Bean" classes are the only thing that needs to be updated and either updates the Jar with the Bean classfile or returns true, saying that the whole WebLogic jar needs to be regenerated with ejbc. This allows faster build times for working developers. The way WebLogic ejbc works is it creates wrappers for the publicly defined methods as they are exposed in the remote interface. If the actual bean changes without changing the the method signatures then only the bean classfile needs to be updated and the rest of the WebLogic jar file can remain the same. If the Interfaces, ie. the method signatures change or if the xml deployment descriptors changed, the whole jar needs to be rebuilt with ejbc. This is not strictly true for the xml files. If the JNDI name changes then the jar doesn't have to be rebuild, but if the resources references change then it does. At this point the WebLogic jar gets rebuilt if the xml files change at all. | |
| registerKnownDTDs | back to summary |
|---|---|
| protected void registerKnownDTDs(DescriptorHandler handler) Overrides org. Deprecated as a consequence of Register the DTDs.
| |
| setArgs | back to summary |
|---|---|
| public void setArgs(String args) Any optional extra arguments pass to the weblogic.ejbc tool.
| |
| setCompiler | back to summary |
|---|---|
| public void setCompiler(String compiler) The compiler (switch
| |
| setEjbcClass | back to summary |
|---|---|
| public void setEjbcClass(String ejbcClass) Set the classname of the ejbc compiler; optional Normally ejbjar determines the appropriate class based on the DTD used for the EJB. The EJB 2.0 compiler featured in WebLogic 6 has, however, been deprecated in version 7. When using with version 7 this attribute should be set to "weblogic.ejbc" to avoid the deprecation warning.
| |
| setEJBdtd | back to summary |
|---|---|
| public void setEJBdtd(String inString) Deprecated. Defines the location of Sun's EJB DTD in the WebLogic class hierarchy. Should not be needed, and the nested <dtd> element is recommended when it is.
| |
| setJvmargs | back to summary |
|---|---|
| public void setJvmargs(String args) Set any additional arguments to pass to the WebLogic JVM; optional.
| |
| setJvmDebugLevel | back to summary |
|---|---|
| public void setJvmDebugLevel(Integer jvmDebugLevel) Sets the weblogic.StdoutSeverityLevel to use when running the JVM that executes ejbc; optional. Set to 16 to avoid the warnings about EJB Home and Remotes being in the classpath
| |
| setKeepgenerated | back to summary |
|---|---|
| public void setKeepgenerated(String inValue) Controls whether WebLogic will keep the generated Java files used to build the class files added to the jar. This can be useful when debugging; default is false.
| |
| setKeepgeneric | back to summary |
|---|---|
| public void setKeepgeneric(boolean inValue) controls whether the generic file used as input to ejbc is retained; defaults to false
| |
| setNewCMP | back to summary |
|---|---|
| public void setNewCMP(boolean newCMP) If this is set to true, the new method for locating CMP descriptors will be used; optional, default false. The old CMP scheme locates the WebLogic CMP descriptor based on the naming convention where the WebLogic CMP file is expected to be named with the bean name as the prefix. Under this scheme the name of the CMP descriptor does not match the name actually used in the main WebLogic EJB descriptor. Also, descriptors which contain multiple CMP references could not be used.
| |
| setNoEJBC | back to summary |
|---|---|
| public void setNoEJBC(boolean noEJBC) Do not EJBC the jar after it has been put together; optional, default false
| |
| setOldCMP | back to summary |
|---|---|
| public void setOldCMP(boolean oldCMP) Set the value of the oldCMP scheme. This is an antonym for newCMP
| |
| setOutputDir | back to summary |
|---|---|
| public void setOutputDir(File outputDir) If set ejbc will use this directory as the output destination rather than a jar file. This allows for the generation of "exploded" jars.
| |
| setRebuild | back to summary |
|---|---|
| public void setRebuild(boolean rebuild) Set the rebuild flag to false to only update changes in the jar rather than rerunning ejbc; optional, default true. This flag controls whether weblogic.ejbc is always invoked to build the jar file. In certain circumstances, such as when only a bean class has been changed, the jar can be generated by merely replacing the changed classes and not rerunning ejbc. Setting this to false will reduce the time to run ejbjar.
| |
| setSuffix | back to summary |
|---|---|
| public void setSuffix(String inString) Setter used to store the suffix for the generated WebLogic jar file.
| |
| setWeblogicdtd | back to summary |
|---|---|
| public void setWeblogicdtd(String inString) Deprecated. Defines the location of the ejb-jar DTD in the WebLogic class hierarchy. Should not be needed, and the nested <dtd> element is recommended when it is.
| |
| setWLClasspath | back to summary |
|---|---|
| public void setWLClasspath(Path wlClasspath) Optional classpath to WL6.0. WebLogic 6.0 will give a warning if the home and remote interfaces of a bean are on the system classpath used to run weblogic.ejbc. In that case, the standard WebLogic classes should be set with this attribute (or equivalent nested element) and the home and remote interfaces located with the standard classpath attribute.
| |
| setWLdtd | back to summary |
|---|---|
| public void setWLdtd(String inString) Deprecated. Defines the location of WebLogic DTD in the WebLogic class hierarchy. Should not be needed, and the nested <dtd> element is recommended when it is.
| |
| validateConfigured | back to summary |
|---|---|
| public void validateConfigured() throws BuildException Overrides org. Implements org. Called to validate that the tool parameters have been configured.
| |
| writeJar | back to summary |
|---|---|
| protected void writeJar(String baseName, File jarFile, Hashtable<String, File> files, String publicId) throws BuildException Overrides org. 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. | |