conor 2002/06/14 07:34:30
Modified: . Tag: ANT_15_BRANCH WHATSNEW
docs/manual/OptionalTasks Tag: ANT_15_BRANCH ejb.html
src/main/org/apache/tools/ant/taskdefs/optional/ejb Tag:
ANT_15_BRANCH WeblogicDeploymentTool.java
Log:
Add a jvmargs attribute to ejbjar/weblogic to allow additional JVM args to
be specified
Document jvmdebuglevel attribute
Revision Changes Path
No revision
No revision
1.263.2.45 +8 -2 jakarta-ant/WHATSNEW
Index: WHATSNEW
===================================================================
RCS file: /home/cvs/jakarta-ant/WHATSNEW,v
retrieving revision 1.263.2.44
retrieving revision 1.263.2.45
diff -u -w -u -r1.263.2.44 -r1.263.2.45
--- WHATSNEW 14 Jun 2002 11:20:16 -0000 1.263.2.44
+++ WHATSNEW 14 Jun 2002 14:34:29 -0000 1.263.2.45
@@ -54,6 +54,12 @@
to verbose level if the two task definitions only differ in the class
loader instance that has loaded the definition.
+* Add a jvmargs to the ejbjar's weblogic element to allow additional
+ arguments to be provided to the VM runnign ejbc. Document the
+ jvmdebuglevel attribute which can be used to avoid warnings about
+ interface classess being found on the classpath. Document the new
+ <sysproperty> element which allows JVM properties to be defined.
+
Changes from Ant 1.5beta1 to Ant 1.5beta2
=========================================
No revision
No revision
1.23.2.4 +17 -1 jakarta-ant/docs/manual/OptionalTasks/ejb.html
Index: ejb.html
===================================================================
RCS file: /home/cvs/jakarta-ant/docs/manual/OptionalTasks/ejb.html,v
retrieving revision 1.23.2.3
retrieving revision 1.23.2.4
diff -u -w -u -r1.23.2.3 -r1.23.2.4
--- ejb.html 14 Jun 2002 14:03:32 -0000 1.23.2.3
+++ ejb.html 14 Jun 2002 14:34:30 -0000 1.23.2.4
@@ -1046,6 +1046,22 @@
"weblogic.ejbc" to avoid the deprecation
warning.</td>
<td valign="top" align="center">No.</td>
</tr>
+ <tr>
+ <td valign="top">jvmargs</td>
+ <td valign="top">Any additional arguments to be passed to the Virtual
Machine
+ running weblogic.ejbc tool. For example to set the
memory size,
+ this could be jvmargs="-Xmx128m"
+ </td>
+ <td valign="top" align="center">No.</td>
+ </tr>
+ <tr>
+ <td valign="top">jvmdebuglevel</td>
+ <td valign="top">Sets the weblogic.StdoutSeverityLevel to use when
running
+ the Virtual Machine that executes ejbc. Set to 16 to
avoid
+ the warnings about EJB Home and Remotes being in the
classpath
+ </td>
+ <td valign="top" align="center">No.</td>
+ </tr>
</table>
<p>The weblogic nested element supports three nested elements. The
No revision
No revision
1.40.2.3 +15 -2
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.2
retrieving revision 1.40.2.3
diff -u -w -u -r1.40.2.2 -r1.40.2.3
--- WeblogicDeploymentTool.java 4 Jun 2002 07:11:23 -0000 1.40.2.2
+++ WeblogicDeploymentTool.java 14 Jun 2002 14:34:30 -0000 1.40.2.3
@@ -134,6 +134,11 @@
private String additionalArgs = "";
+ /**
+ * additional args to pass to the spawned jvm
+ */
+ private String additionalJvmArgs = "";
+
private boolean keepGeneric = false;
private String compiler = null;
@@ -252,6 +257,13 @@
this.additionalArgs = args;
}
+ /**
+ * Set the additional arguments to pass to the weblogic JVM
+ * @param args the arguments to be passed to the JVM
+ */
+ public void setJvmargs(String args) {
+ this.additionalJvmArgs = args;
+ }
/** Set the classname of the ejbc compiler */
public void setEjbcClass(String ejbcClass) {
@@ -449,7 +461,7 @@
* jarfile.
*/
private void buildWeblogicJar(File sourceJar, File destJar, String
publicId) {
- org.apache.tools.ant.taskdefs.Java javaTask = null;
+ Java javaTask = null;
if (noEJBC) {
try {
@@ -469,6 +481,7 @@
javaTask = (Java) getTask().getProject().createTask("java");
javaTask.setTaskName("ejbc");
+ javaTask.createJvmarg().setLine(additionalJvmArgs);
if (!(sysprops.isEmpty())) {
for (Enumeration en = sysprops.elements() ;
en.hasMoreElements();) {
Environment.Variable entry
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>