--- antOld/docs/manual/OptionalTasks/ejb.html	Tue Oct 30 11:05:38 2001
+++ antNew/docs/manual/OptionalTasks/ejb.html	Mon Nov 19 18:51:48 2001
@@ -17,10 +17,11 @@
   <li>Martin Gee (<a href="mailto:martin.gee@icsynergy.com">martin.gee@icsynergy.com</a>)</li>
   <li>Conor MacNeill (<a href="mailto:conor@cortexebusiness.com.au">conor@cortexebusiness.com.au</a>)</li>
   <li>Greg Nelson (<a href="mailto:greg@netscape.com">greg@netscape.com</a>)</li>
+  <li>Cyrille Morvan (<a href="mailto:cmorvan@ingenosya.com">cmorvan@ingenosya.com</a>)</li>
 </ul>
 
 <p>Version @VERSION@<br>
-$Id: ejb.html,v 1.11 2001/10/30 10:05:38 bodewig Exp $
+$Id: ejb.html,v 1.12 2001/11/19 18:51:48 cyrille Exp $
 </p>
 <hr>
 <h2>Table of Contents</h2>
@@ -64,11 +65,12 @@
  <tr><td><a href="#ddcreator">ddcreator</a></td><td colspan="2">Weblogic 4.5.1</td></tr>
  <tr><td><a href="#ejbc">ejbc</a></td><td colspan="2">Weblogic 4.5.1</td></tr>
  <tr><td><a href="#iplanet-ejbc">iplanet-ejbc</a></td><td colspan="2">iPlanet Application Server 6.0</td></tr>
- <tr><td rowspan="5"><a href="#ejbjar">ejbjar</a></td><td colspan="2" align="center"><b>Nested Elements</b></td></tr>
+ <tr><td rowspan="6"><a href="#ejbjar">ejbjar</a></td><td colspan="2" align="center"><b>Nested Elements</b></td></tr>
  <tr><td><a href="BorlandEJBTasks.html">borland</a></td><td>Borland Application Server 4.5</td></tr>
  <tr><td><a href="#ejbjar_jboss">jBoss</a></td><td>jBoss</td></tr>
  <tr><td><a href="#ejbjar_iplanet">iPlanet</a></td><td>iPlanet Application Server 6.0</td></tr>
  <tr><td><a href="#ejbjar_weblogic">weblogic</a></td><td>Weblogic 5.1 &amp; 6.0</td></tr>
+ <tr><td><a href="#ejbjar_jonas">jonas</a></td><td>JOnAS 2.4</td></tr> 
  <tr><td><a href="#wlrun">wlrun</a></td><td colspan="2">Weblogic 4.5.1, 5.1 &amp; 6.0</td></tr>
  <tr><td><a href="#wlstop">wlstop</a></td><td colspan="2">Weblogic 4.5.1, 5.1 &amp; 6.0</td></tr>
 
@@ -1282,6 +1284,182 @@
             &lt;dtd publicId="-//Sun Microsystems, Inc.//DTD iAS Enterprise JavaBeans 1.0//EN"
                  location="${ias.home}/APPS/IASEjb_jar_1_0.dtd"/>
     &lt;/ejbjar></pre>
+
+<h3><a name="ejbjar_jonas">
+<h3>jonas element</h3>
+</a>
+</h3>
+<p>  The &lt;jonas&gt; nested element is used to build JOnAS-specific stubs
+ and skeletons and construct a JAR file which may be deployed to the JOnAS
+ Application Server.  The build process will always determine if the EJB
+stubs/skeletons  and the EJB-JAR file are up to date, and it will do the
+minimum amount of  work required. </p>
+<p>Like the WebLogic element, a naming convention for the EJB descriptors
+ is most commonly used to specify the name for the completed JAR file.  For
+ example, if the EJB descriptor ejb/Account-ejb-jar.xml is found in the descriptor
+ directory, the iplanet element will search for an JOnAS-specific EJB descriptor
+ file named ejb/jonas-Account-jar.xml (if it isn't found, the task will fail)
+ and a JAR file named ejb/Account.jar will be written in the destination
+directory.   Note that when the EJB descriptors are added to the JAR file,
+they are automatically  renamed META-INF/ejb-jar.xml and META-INF/jonas-ejb-jar.xml.
+But please ,  be careful the name is jonas-Account-jar.xml and not Account-jonas-ejb-jar.xml.
+ The task uses JOnAS convention naming. </p>
+<p>Of course, this naming behavior can be modified by specifying attributes
+ in the ejbjar task (for example, basejarname, basenameterminator, and flatdestdir)
+ as well as the iplanet element (for example, suffix).  Refer to the appropriate
+ documentation for more details.</p>
+<h3> Parameters:</h3>
+<table border="1" cellspacing="0" cellpadding="2">
+  <tbody>
+    <tr>
+      <td valign="Top"><b>Attribute</b></td>
+      <td valign="Top"><b>Description</b></td>
+      <td align="Center" valign="Top"><b>Required</b></td>
+    </tr>
+    <tr>
+      <td valign="Top">destdir</td>
+      <td valign="Top">The base directory into which the generated JAR files
+ will be written. Each JAR file is written in directories which correspond
+ to their location within the "descriptordir" namespace.</td>
+      <td align="Center" valign="Top">Yes</td>
+    </tr>
+    <tr>
+      <td valign="Top">jonasroot<br>
+      </td>
+      <td valign="Top">The root directory for JOnAS. <br>
+      </td>
+      <td valign="Top">
+      <div align="Center">Yes<br>
+      </div>
+      </td>
+    </tr>
+    <tr>
+      <td valign="Top">workdir<br>
+      </td>
+      <td valign="Top">The work directory to use. Specify where to place
+the generated files, before to add to the jar. The directory should be empty.
+If omitted, it defaults to a temporary directory.<br>
+      </td>
+      <td valign="Top">
+      <div align="Center">No<br>
+      </div>
+      </td>
+    </tr>
+    <tr>
+      <td valign="Top">classpath</td>
+      <td valign="Top">The classpath used when generating EJB stubs and skeletons.
+  If omitted, the classpath specified in the "ejbjar" parent task will be
+used.  If specified, the classpath elements will be prepended to the classpath
+ specified in the parent "ejbjar" task. Note that nested "classpath" elements
+ may also be used.</td>
+      <td align="Center" valign="Top">No</td>
+    </tr>
+    <tr>
+      <td valign="Top">keepgenerated</td>
+      <td valign="Top">Indicates whether or not the Java source files which
+ are generated by gewill be saved or automatically deleted. If "yes", the
+source files will be retained.  If omitted, it defaults to "no". </td>
+      <td align="Center" valign="Top">No</td>
+    </tr>
+    <tr>
+      <td valign="Top">orb<br>
+      </td>
+      <td>Choose your ORB : RMI, JEREMIE, DAVID, ... If omitted, it defaults
+to the one present in classpath.<br>
+      </td>
+      <td align="Center" valign="Top">No</td>
+    </tr>
+    <tr>
+      <td valign="Top">noGENIC<br>
+      </td>
+      <td valign="Top">If this attribute is set to true, JOnAS's GenIC will
+ not be run on the EJB jar.                      Use this if you prefer to
+ run ejbc at deployment time.</td>
+      <td>
+      <div align="Center">No       </div>
+      </td>
+    </tr>
+    <tr>
+      <td valign="Top">suffix</td>
+      <td>String value appended to the JAR filename when creating each JAR.
+  If omitted, it defaults to ".jar". </td>
+      <td align="Center" valign="Top">No</td>
+    </tr>
+    <tr>
+      <td valign="Top">verbose<br>
+      </td>
+      <td valign="Top">Indicates whether or not to use -verbose switch. If
+omitted, it defaults to "no".</td>
+      <td valign="Top">
+      <div align="Center">No<br>
+      </div>
+      </td>
+    </tr>
+    <tr>
+      <td valign="Top">compiler<br>
+      </td>
+      <td valign="Top">This allows for the selection of a different compiler
+                      to be used for the compilation of the generated Java
+                      files. This could be set, for example, to Jikes to
+                     compile with the Jikes compiler. If this is not set
+                    and the <code>build.compiler</code> property is set
+                    to jikes, the Jikes compiler will be used. If this
+                   is not desired, the value "<code>default</code>"
+                 may be given to use the default compiler<br>
+      </td>
+      <td valign="Top">
+      <div align="Center">No<br>
+      </div>
+      </td>
+    </tr>
+    <tr>
+      <td valign="Top">args<br>
+      </td>
+      <td valign="Top">Add additional args to GenIC.<br>
+      </td>
+      <td valign="Top">
+      <div align="Center">No<br>
+      </div>
+      </td>
+    </tr>
+  </tbody>
+</table>
+<p>As noted above, the jonas element supports additional &lt;classpath&gt;
+ nested elements. </p>
+<h3>Examples</h3>
+<p>This example shows ejbjar being used to generate deployment jars using
+ a  JOnAS EJB container. This example requires the naming standard to be
+ used for  the deployment descriptors. Using this format will create a ejb
+ jar file for  each variation of &nbsp;'*-ejb-jar.xml' that is found in the
+deployment  descriptor  directory.&nbsp;</p>
+<pre>
+      &lt;ejbjar srcdir="${build.classes}"
+              descriptordir="${descriptor.dir}"&gt;
+        &lt;jonas destdir="${deploymentjars.dir}"
+             jonasroot="${jonas.root}"
+             orb="RMI" /&gt;
+        &lt;include name="**/*-ejb-jar.xml"/&gt;
+        &lt;exclude name="**/jonas-*-jar.xml"/&gt;
+        &lt;support dir="${build.classes}"&gt;
+             &lt;include name="**/*.class"/&gt;
+        &lt;/support&gt;
+      &lt;/ejbjar&gt;
+</pre>
+<p></p>
+<p>This example shows ejbjar being used to generate a single deployment jar
+  using a JOnAS EJB container. This example does not require the deployment
+  descriptors to use the naming standard. This will create only one ejb jar
+ file - 'TheEJBJar.jar'.</p>
+<pre>
+      &lt;ejbjar srcdir="${build.classes}"
+              descriptordir="${descriptor.dir}"
+              basejarname="TheEJBJar"&gt;
+        &lt;jonas destdir="${deploymentjars.dir}" suffix=".jar"
+                  classpath="${descriptorbuild.classpath}" /&gt;
+        &lt;include name="**/ejb-jar.xml"/&gt;
+        &lt;exclude name="**/jonas-ejb-jar.xml"/&gt;
+      &lt;/ejbjar&gt;
+</pre>
 
 </body>
 
