You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

BorlandEJBTasks.html 5.2 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <!DOCTYPE html>
  2. <!--
  3. Licensed to the Apache Software Foundation (ASF) under one or more
  4. contributor license agreements. See the NOTICE file distributed with
  5. this work for additional information regarding copyright ownership.
  6. The ASF licenses this file to You under the Apache License, Version 2.0
  7. (the "License"); you may not use this file except in compliance with
  8. the License. You may obtain a copy of the License at
  9. https://www.apache.org/licenses/LICENSE-2.0
  10. Unless required by applicable law or agreed to in writing, software
  11. distributed under the License is distributed on an "AS IS" BASIS,
  12. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. See the License for the specific language governing permissions and
  14. limitations under the License.
  15. -->
  16. <html lang="en">
  17. <head>
  18. <link rel="stylesheet" type="text/css" href="../stylesheets/style.css">
  19. <title>Borland EJB Tasks</title>
  20. </head>
  21. <body>
  22. <h2 id="log">BorlandDeployTool</h2>
  23. <p>by Benoit Moussaud (<a href="mailto:benoit.moussaud@criltelecom.com">benoit.moussaud@criltelecom.com</a>)</p>
  24. <h3>Description</h3>
  25. <p>The BorlandDeployTool is a vendor specific nested element for the Ejbjar optional task.</p>
  26. <p>BorlandDeployTool is dedicated to the Borland Application Server 4.5.x and Borland Enterprise
  27. Server 5.x. It generates and compiles the stubs and skeletons for all EJBs described in the
  28. Deployment Descriptor, builds the jar file including the support files and verifies whether the
  29. produced jar is valid or not.</p>
  30. <p>Benoit Moussaud maintains a
  31. separate <a href="https://web.archive.org/web/20141122083215/http://www.moussaud.org/ejbjar.html"
  32. target="_top">FAQ</a> for this task at his homepage.</p>
  33. <h3>Borland element</h3>
  34. <table class="attr">
  35. <tr>
  36. <th scope="col">Attribute</th>
  37. <th scope="col">Description</th>
  38. <th scope="col">Required</th>
  39. </tr>
  40. <tr>
  41. <td>destdir</td>
  42. <td>The base directory in which the generated Borland ready jar files are stored</td>
  43. <td>Yes</td>
  44. </tr>
  45. <tr>
  46. <td>debug</td>
  47. <td>If <q>true</q>, turn on the debug mode for each Borland tools
  48. (<code>java2iiop</code>, <code>iastool</code>, ...)</td>
  49. <td>No; default <q>false</q></td>
  50. </tr>
  51. <tr>
  52. <td>verify</td>
  53. <td>If <q>true</q>, turn on the verification at the end of the jar production.</td>
  54. <td>No; default <q>false</q></td>
  55. </tr>
  56. <tr>
  57. <td>verifyargs</td>
  58. <td>extra parameter for verify command</td>
  59. <td>No</td>
  60. </tr>
  61. <tr>
  62. <td>suffix</td>
  63. <td>String value appended to the basename of the deployment descriptor to create the filename of
  64. the Borland EJB jar file.</td>
  65. <td>No; defaults to <q class="no-break">-ejb.jar</q></td>
  66. </tr>
  67. <tr>
  68. <td>basdtd</td>
  69. <td><em><u>Deprecated</u></em>. Defines the location of the DTD which covers the Borland
  70. specific deployment descriptors. This should not be necessary if you have borland in your
  71. classpath. If you do not, you should use a nested
  72. <a href="ejb.html#ejbjar-dtd"><code>&lt;dtd&gt;</code></a> element, described
  73. in the ejbjar task documentation.</td>
  74. <td>No</td>
  75. </tr>
  76. <tr>
  77. <td>ejbdtd</td>
  78. <td><em><u>Deprecated</u></em>. Defines the location of the ejb-jar DTD in the class
  79. hierarchy. This should not be necessary if you have borland in your classpath. If you do not,
  80. you should use a nested <a href="ejb.html#ejbjar-dtd"><code>&lt;dtd&gt;</code></a> element,
  81. described in the ejbjar task documentation.</td>
  82. <td>No</td>
  83. </tr>
  84. <tr>
  85. <td>generateclient</td>
  86. <td>If <q>true</q>, turn on the generation of the corresponding EJB jar.</td>
  87. <td>No; default <q>false</q></td>
  88. </tr>
  89. <tr>
  90. <td>version</td>
  91. <td>set the Borland Application Version.
  92. <ul>
  93. <li>4 means B.A.S (Borland Application Server) 4.x, target will add ejb-inprise.xml file</li>
  94. <li>5 means B.E.S (Borland Application Server) 5.x, target will add ejb-borland.xml file</li>
  95. </ul>
  96. </td>
  97. <td>No; defaults to <q>4</q></td>
  98. </tr>
  99. <tr>
  100. <td>java2iiopParams</td>
  101. <td>If filled, the params are added to the <kbd>java2iiop</kbd> command
  102. (ex: <kbd>-no_warn_missing_define</kbd>)</td>
  103. <td>No</td>
  104. </tr>
  105. </table>
  106. <h3>Examples</h3>
  107. <p>The following <samp>build.xml</samp> snippet is an example of how to use Borland element in
  108. the <code>ejbjar</code> task</p>
  109. <pre>
  110. &lt;ejbjar srcdir=&quot;${build.classes}&quot; basejarname=&quot;vsmp&quot; descriptordir=&quot;${rsc.dir}/hrmanager&quot;&gt;
  111. &lt;borland destdir=&quot;lib&quot; verify=&quot;on&quot; generateclient=&quot;on&quot; version=&quot;5&quot;&gt;
  112. &lt;classpath refid=&quot;classpath&quot;/&gt;
  113. &lt;/borland&gt;
  114. &lt;include name=&quot;**\ejb-jar.xml&quot;/&gt;
  115. &lt;support dir=&quot;${build.classes}&quot;&gt;
  116. &lt;include name=&quot;demo\*.class&quot;/&gt;
  117. &lt;include name=&quot;demo\helper\*.class&quot;/&gt;
  118. &lt;/support&gt;
  119. &lt;/ejbjar&gt;</pre>
  120. <p>The <code>borland</code> element will generate into the <samp>lib</samp> directory an EJB jar
  121. file using the deployment descriptor placed into the <samp>${rsc.dir}/hrmanager</samp> directory.
  122. The verify phase is turned on and the generate client phase as well.</p>
  123. </body>
  124. </html>