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.

rmic.html 6.2 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Language" content="en-us">
  4. <title>Ant User Manual</title>
  5. </head>
  6. <body>
  7. <h2><a name="rmic">Rmic</a></h2>
  8. <h3>Description</h3>
  9. <p>Runs the rmic compiler for a certain class.</p>
  10. <p>Rmic can be run on a single class (as specified with the classname
  11. attribute) or a number of classes at once (all classes below base that
  12. are neither _Stub nor _Skel classes).</p>
  13. <p>It is possible to refine the set of files that are being rmiced. This can be
  14. done with the <i>includes</i>, <i>includesfile</i>, <i>excludes</i>, <i>excludesfile</i> and <i>defaultexcludes</i>
  15. attributes. With the <i>includes</i> or <i>includesfile</i> attribute you specify the files you want to
  16. have included by using patterns. The <i>exclude</i> or <i>excludesfile</i> attribute is used to specify
  17. the files you want to have excluded. This is also done with patterns. And
  18. finally with the <i>defaultexcludes</i> attribute, you can specify whether you
  19. want to use default exclusions or not. See the section on <a
  20. href="../dirtasks.html#directorybasedtasks">directory based tasks</a>, on how the
  21. inclusion/exclusion of files works, and how to write patterns.</p>
  22. <p>This task forms an implicit <a href="../CoreTypes/fileset.html">FileSet</a> and
  23. supports all attributes of <code>&lt;fileset&gt;</code>
  24. (<code>dir</code> becomes <code>base</code>) as well as the nested
  25. <code>&lt;include&gt;</code>, <code>&lt;exclude&gt;</code> and
  26. <code>&lt;patternset&gt;</code> elements.</p>
  27. <h3>Parameters</h3>
  28. <table border="1" cellpadding="2" cellspacing="0">
  29. <tr>
  30. <td valign="top"><b>Attribute</b></td>
  31. <td valign="top"><b>Description</b></td>
  32. <td align="center" valign="top"><b>Required</b></td>
  33. </tr>
  34. <tr>
  35. <td valign="top">base</td>
  36. <td valign="top">the location to store the compiled files.</td>
  37. <td valign="top" align="center">Yes</td>
  38. </tr>
  39. <tr>
  40. <td valign="top">classname</td>
  41. <td valign="top">the class for which to run <code>rmic</code>.</td>
  42. <td valign="top" align="center">No</td>
  43. </tr>
  44. <tr>
  45. <td valign="top">filtering</td>
  46. <td valign="top">indicates whether token filtering should take place</td>
  47. <td valign="top" align="center">No</td>
  48. </tr>
  49. <tr>
  50. <td valign="top">sourcebase</td>
  51. <td valign="top">Pass the &quot;-keepgenerated&quot; flag to rmic and
  52. move the generated source file to the base directory.</td>
  53. <td align="center" valign="top">No</td>
  54. </tr>
  55. <tr>
  56. <td valign="top">stubversion</td>
  57. <td valign="top">Specify the JDK version for the generated stub code.
  58. Specify &quot;1.1&quot; to pass the &quot;-v1.1&quot; option to rmic.</td>
  59. <td align="center" valign="top">No</td>
  60. </tr>
  61. <tr>
  62. <td valign="top">classpath</td>
  63. <td valign="top">The classpath to use during compilation</td>
  64. <td align="center" valign="top">No</td>
  65. </tr>
  66. <tr>
  67. <td valign="top">classpathref</td>
  68. <td valign="top">The classpath to use during compilation, given as <a
  69. href="../using.html#references">reference</a> to a PATH defined elsewhere</td>
  70. <td align="center" valign="top">No</td>
  71. </tr>
  72. <tr>
  73. <td valign="top">includes</td>
  74. <td valign="top">comma separated list of patterns of files that must be
  75. included. All files are included when omitted.</td>
  76. <td valign="top" align="center">No</td>
  77. </tr>
  78. <tr>
  79. <td valign="top">includesfile</td>
  80. <td valign="top">the name of a file. Each line of this file is
  81. taken to be an include pattern</td>
  82. <td valign="top" align="center">No</td>
  83. </tr>
  84. <tr>
  85. <td valign="top">excludes</td>
  86. <td valign="top">comma separated list of patterns of files that must be
  87. excluded. No files (except default excludes) are excluded when omitted.</td>
  88. <td valign="top" align="center">No</td>
  89. </tr>
  90. <tr>
  91. <td valign="top">excludesfile</td>
  92. <td valign="top">the name of a file. Each line of this file is
  93. taken to be an exclude pattern</td>
  94. <td valign="top" align="center">No</td>
  95. </tr>
  96. <tr>
  97. <td valign="top">defaultexcludes</td>
  98. <td valign="top">indicates whether default excludes should be used or not
  99. (&quot;yes&quot;/&quot;no&quot;). Default excludes are used when omitted.</td>
  100. <td valign="top" align="center">No</td>
  101. </tr>
  102. <tr>
  103. <td valign="top">verify</td>
  104. <td valign="top">check that classes implement Remote before handing them
  105. to rmic (default is false)</td>
  106. <td align="center" valign="top">No</td>
  107. </tr>
  108. <tr>
  109. <td valign="top">iiop</td>
  110. <td valign="top">indicates that portable (RMI/IIOP) stubs should be generated</td>
  111. <td align="center" valign="top">No</td>
  112. </tr>
  113. <tr>
  114. <td valign="top">iiopopts</td>
  115. <td valign="top">additional arguments for IIOP class generation</td>
  116. <td align="center" valign="top">No</td>
  117. </tr>
  118. <tr>
  119. <td valign="top">idl</td>
  120. <td valign="top">indicates that IDL output files should be generated</td>
  121. <td align="center" valign="top">No</td>
  122. </tr>
  123. <tr>
  124. <td valign="top">idlopts</td>
  125. <td valign="top">additional arguments for IDL file generation</td>
  126. <td align="center" valign="top">No</td>
  127. </tr>
  128. <tr>
  129. <td valign="top">debug</td>
  130. <td valign="top">generate debug info (passes -g to rmic). Defaults to false.</td>
  131. <td align="center" valign="top">No</td>
  132. </tr>
  133. </table>
  134. <h3>Parameters specified as nested elements</h3>
  135. <h4>classpath</h4>
  136. <p><code>Rmic</code>'s <i>classpath</i> attribute is a <a
  137. href="../using.html#path">PATH like structure</a> and can also be set via a nested
  138. <i>classpath</i> elements.</p>
  139. <h3>Examples</h3>
  140. <pre> &lt;rmic classname=&quot;com.xyz.FooBar&quot; base=&quot;${build}/classes&quot;/&gt;</pre>
  141. <p>runs the rmic compiler for the class <code>com.xyz.FooBar</code>. The
  142. compiled files will be stored in the directory <code>${build}/classes</code>.</p>
  143. <pre> &lt;rmic base=&quot;${build}/classes&quot; includes=&quot;**/Remote*.class&quot;/&gt;</pre>
  144. <p>runs the rmic compiler for all classes with <code>.class</code>
  145. files below <code>${build}/classes</code> whose classname starts with
  146. <i>Remote</i>. The compiled files will be stored in the directory
  147. <code>${build}/classes</code>.</p>
  148. <hr>
  149. <p align="center">Copyright &copy; 2000,2001 Apache Software Foundation. All rights
  150. Reserved.</p>
  151. </body>
  152. </html>