stevel 2002/06/23 19:00:09
Modified: src/main/org/apache/tools/ant/taskdefs/optional/ejb Tag:
ANT_15_BRANCH GenericDeploymentTool.java
WeblogicDeploymentTool.java
WebsphereDeploymentTool.java
Log:
more ejb stuff
Revision Changes Path
No revision
No revision
1.37.2.3 +1 -1
jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/ejb/GenericDeploymentTool.java
Index: GenericDeploymentTool.java
===================================================================
RCS file:
/home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/ejb/GenericDeploymentTool.java,v
retrieving revision 1.37.2.2
retrieving revision 1.37.2.3
diff -u -r1.37.2.2 -r1.37.2.3
--- GenericDeploymentTool.java 24 Jun 2002 01:39:57 -0000 1.37.2.2
+++ GenericDeploymentTool.java 24 Jun 2002 02:00:09 -0000 1.37.2.3
@@ -169,7 +169,7 @@
/**
- * Set the destination directory; usually required.
+ * Set the destination directory; required.
* @param inDir the destination directory.
*/
public void setDestdir(File inDir) {
1.40.2.6 +15 -5
jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/ejb/WeblogicDeploymentTool.java
Index: WeblogicDeploymentTool.java
===================================================================
RCS file:
/home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/ejb/WeblogicDeploymentTool.java,v
retrieving revision 1.40.2.5
retrieving revision 1.40.2.6
diff -u -r1.40.2.5 -r1.40.2.6
--- WeblogicDeploymentTool.java 24 Jun 2002 01:39:57 -0000 1.40.2.5
+++ WeblogicDeploymentTool.java 24 Jun 2002 02:00:09 -0000 1.40.2.6
@@ -197,7 +197,9 @@
}
/**
- * Output the generated jar to a directory.
+ * If set ejbc will use this directory as the output
+ * destination rather than a jar file. This allows for the
+ * generation of "exploded" jars.
*/
public void setOutputDir(File outputDir) {
this.outputDir = outputDir;
@@ -251,7 +253,7 @@
/**
* Sets the weblogic.StdoutSeverityLevel to use when running the JVM that
- * executes ejbc. Set to 16 to avoid the warnings about EJB Home and
+ * executes ejbc; optional. Set to 16 to avoid the warnings about EJB
Home and
* Remotes being in the classpath
*/
public void setJvmDebugLevel(Integer jvmDebugLevel) {
@@ -307,7 +309,7 @@
}
/**
- * Set the additional arguments to pass to the weblogic JVM
+ * Set any additional arguments to pass to the weblogic JVM; optional.
* @param args the arguments to be passed to the JVM
*/
public void setJvmargs(String args) {
@@ -315,7 +317,12 @@
}
/**
- * Set the classname of the ejbc compiler; optional
+ * 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.
*/
public void setEjbcClass(String ejbcClass) {
this.ejbcClass = ejbcClass;
@@ -389,7 +396,10 @@
}
- /** Do not EJBC the jar after it has been put together. */
+ /**
+ * Do not EJBC the jar after it has been put together;
+ * optional, default false
+ */
public void setNoEJBC(boolean noEJBC) {
this.noEJBC = noEJBC;
}
1.11.2.1 +64 -26
jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/ejb/WebsphereDeploymentTool.java
Index: WebsphereDeploymentTool.java
===================================================================
RCS file:
/home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/ejb/WebsphereDeploymentTool.java,v
retrieving revision 1.11
retrieving revision 1.11.2.1
diff -u -r1.11 -r1.11.2.1
--- WebsphereDeploymentTool.java 15 Apr 2002 14:56:31 -0000 1.11
+++ WebsphereDeploymentTool.java 24 Jun 2002 02:00:09 -0000 1.11.2.1
@@ -88,6 +88,24 @@
/**
* Websphere deployment tool that augments the ejbjar task.
+ * Searches for the websphere specific deployment descriptors and
+ * adds them to the final ejb jar file. Websphere has two specific
descriptors for session
+ * beans:
+ * <ul>
+ * <li>ibm-ejb-jar-bnd.xmi</li>
+ * <li>ibm-ejb-jar-ext.xmi</li>
+ * </ul>
+ * and another two for container managed entity beans:
+ * <ul>
+ * <li>Map.mapxmi</li>
+ * <li>Schema.dbxmi</li>
+ * </ul>
+ * In terms of WebSphere, the generation of container code and stubs is
called <code>deployment</code>.
+ * This step can be performed by the websphere element as part of the jar
generation process. If the
+ * switch <code>ejbdeploy</code> is on, the ejbdeploy tool from the
websphere toolset is called for
+ * every ejb-jar. Unfortunately, this step only works, if you use the ibm
jdk. Otherwise, the rmic
+ * (called by ejbdeploy) throws a ClassFormatError. Be sure to switch
ejbdeploy off, if run ant with
+ * sun jdk.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Maneesh Sahu</a>
*/
@@ -195,14 +213,24 @@
}
- /** Sets the DB Vendor for the Entity Bean mapping */
+ /** Sets the DB Vendor for the Entity Bean mapping ; optional.
+ * Valid options are for example:
+ * <ul>
+ * <li>SQL92</li> <li>SQL99</li> <li>DB2UDBWIN_V71</li>
+ * <li>DB2UDBOS390_V6</li> <li>DB2UDBAS400_V4R5</li> <li>ORACLE_V8</li>
+ * <li>INFORMIX_V92</li> <li>SYBASE_V1192</li> <li>MYSQL_V323</li>
+ * </ul>
+ * This is also used to determine the name of the Map.mapxmi and
+ * Schema.dbxmi files, for example Account-DB2UDBWIN_V71-Map.mapxmi
+ * and Account-DB2UDBWIN_V71-Schema.dbxmi.
+ */
public void setDbvendor(DBVendor dbvendor) {
this.dbVendor = dbvendor.getValue();
}
/**
- * Sets the name of the Database to create
+ * Sets the name of the Database to create; optional.
*
* @param String
*/
@@ -212,7 +240,7 @@
/**
- * Sets the name of the schema to create
+ * Sets the name of the schema to create; optional.
*
* @param String
*/
@@ -222,9 +250,10 @@
/**
- * (true) Only generate the deployment code, do not run RMIC or Javac
+ * Flag, default false, to only generate the deployment
+ * code, do not run RMIC or Javac
*
- * @param boolean
+ * @param codegen option
*/
public void setCodegen(boolean codegen) {
this.codegen = codegen;
@@ -232,9 +261,9 @@
/**
- * (true) Only output error messages, suppress informational messages
+ * Flag, default true, to only output error messages.
*
- * @param boolean
+ * @param quiet option
*/
public void setQuiet(boolean quiet) {
this.quiet = quiet;
@@ -242,9 +271,9 @@
/**
- * (true) Disable the validation steps
+ * Flag to disable the validation steps; optional, default false.
*
- * @param boolean
+ * @param novalidate option
*/
public void setNovalidate(boolean novalidate) {
this.novalidate = novalidate;
@@ -252,9 +281,9 @@
/**
- * (true) Disable warning and informational messages
+ * Flag to disable warning and informational messages; optional, default
false.
*
- * @param boolean
+ * @param nowarn option
*/
public void setNowarn(boolean nowarn) {
this.nowarn = nowarn;
@@ -262,9 +291,9 @@
/**
- * (true) Disable informational messages
+ * Flag to disable informational messages; optional, default false.
*
- * @param boolean
+ * @param noinfom
*/
public void setNoinform(boolean noinfom) {
this.noinform = noinform;
@@ -272,9 +301,9 @@
/**
- * (true) Enable internal tracing
+ * Flag to enable internal tracing when set, optional, default false.
*
- * @param boolean
+ * @param trace
*/
public void setTrace(boolean trace) {
this.trace = trace;
@@ -282,16 +311,18 @@
/**
- * (true) Use the WebSphere 3.5 compatible mapping rules
+ * Flag to use the WebSphere 3.5 compatible mapping rules ; optional,
default false.
*
- * @param boolean
+ * @param attr
*/
public void setUse35(boolean attr) {
use35MappingRules = attr;
}
- /** The compiler (switch <code>-compiler</code>) to use */
+ /**
+ * The compiler (switch <code>-compiler</code>) to use
+ */
public void setCompiler(String compiler) {
this.compiler = compiler;
}
@@ -299,7 +330,7 @@
/**
* Set the rebuild flag to false to only update changes in the jar rather
- * than rerunning ejbdeploy
+ * than rerunning ejbdeploy; optional, default true.
*/
public void setRebuild(boolean rebuild) {
this.alwaysRebuild = rebuild;
@@ -307,8 +338,9 @@
/**
- * Setter used to store the suffix for the generated websphere jar file.
- *
+ * String value appended to the basename of the deployment
+ * descriptor to create the filename of the WebLogic EJB
+ * jar file. Optional, default '.jar'.
* @param inString the string to use as the suffix.
*/
public void setSuffix(String inString) {
@@ -317,9 +349,9 @@
/**
- * Setter used to store the value of keepGeneric
- *
- * @param inValue a string, either 'true' or 'false'.
+ * This controls whether the generic file used as input to
+ * ejbdeploy is retained; optional, default false.
+ * @param inValue either 'true' or 'false'.
*/
public void setKeepgeneric(boolean inValue) {
this.keepGeneric = inValue;
@@ -338,7 +370,8 @@
/**
- * Decide, wether ejbdeploy should be called or not
+ * Decide, wether ejbdeploy should be called or not;
+ * optional, default true.
*
* @param ejbdeploy
*/
@@ -366,6 +399,7 @@
/**
* Set the value of the oldCMP scheme. This is an antonym for newCMP
+ * @ant.attribute ignore="true"
*/
public void setOldCMP(boolean oldCMP) {
this.newCMP = !oldCMP;
@@ -385,7 +419,11 @@
}
- /** Sets the temporary directory for the ejbdeploy task */
+ /**
+ * The directory, where ejbdeploy will write temporary files;
+ * optional, defaults to '_ejbdeploy_temp'.
+ */
+
public void setTempdir(String tempdir) {
this.tempdir = tempdir;
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>