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.

netrexxc.html 9.9 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Language" content="en-us">
  4. <title>Apache Ant User Manual</title>
  5. </head>
  6. <body>
  7. <h2><a name="netrexxc">NetRexxC</a></h2>
  8. <h3>Description</h3>
  9. <p>Compiles a <a href="http://www2.hursley.ibm.com/netrexx" target="_top">NetRexx</a>
  10. source tree within the running (Ant) VM.</p>
  11. <p>The source and destination directory will be recursively scanned for
  12. NetRexx source files to compile. Only NetRexx files that have no corresponding
  13. class file or where the class file is older than the java file will be compiled.</p>
  14. <p>Files in the source tree are copied to the destination directory,
  15. allowing support files to be located properly in the classpath. The source
  16. files are copied because the NetRexx compiler cannot produce class files in a
  17. specific directory via parameters</p>
  18. <p>The directory structure of the source tree should follow the package
  19. hierarchy.</p>
  20. <p>It is possible to refine the set of files that are being compiled/copied.
  21. This can be done with the <i>includes</i>, <i>includesfile</i>, <i>excludes</i>, <i>excludesfile</i> and
  22. <i>defaultexcludes</i> attributes. With the <i>includes</i> or <i>includesfile</i> attribute you
  23. specify the files you want to have included by using patterns. The
  24. <i>exclude</i> or <i>excludesfile</i> attribute is used to specify the files you want to have
  25. excluded. This is also done with patterns. And finally with the
  26. <i>defaultexcludes</i> attribute, you can specify whether you
  27. want to use default exclusions or not. See the section on <a
  28. href="../dirtasks.html#directorybasedtasks">directory based tasks</a>, on how the
  29. inclusion/exclusion of files works, and how to write patterns.</p>
  30. <p>This task forms an implicit <a href="../CoreTypes/fileset.html">FileSet</a> and
  31. supports all attributes of <code>&lt;fileset&gt;</code>
  32. (<code>dir</code> becomes <code>srcdir</code>) as well as the nested
  33. <code>&lt;include&gt;</code>, <code>&lt;exclude&gt;</code> and
  34. <code>&lt;patternset&gt;</code> elements.</p>
  35. <h3>Parameters</h3>
  36. <table border="1" cellpadding="2" cellspacing="0">
  37. <tr>
  38. <td valign="top"><b>Attribute</b></td>
  39. <td valign="top"><b>Description</b></td>
  40. <td align="center" valign="top"><b>Required</b></td>
  41. </tr>
  42. <tr>
  43. <td valign="top">binary</td>
  44. <td valign="top">Whether literals are treated as the java binary
  45. type rather than the NetRexx types</td>
  46. <td valign="top" align="center">No</td>
  47. </tr>
  48. <tr>
  49. <td valign="top">classpath</td>
  50. <td valign="top">The classpath to use during compilation</td>
  51. <td valign="top" align="center">No</td>
  52. </tr>
  53. <tr>
  54. <td valign="top">comments</td>
  55. <td valign="top">Whether comments are passed through to the
  56. generated java source</td>
  57. <td valign="top" align="center">No</td>
  58. </tr>
  59. <tr>
  60. <td valign="top">compact</td>
  61. <td valign="top">Whether error messages come out in compact or
  62. verbose format</td>
  63. <td valign="top" align="center">No</td>
  64. </tr>
  65. <tr>
  66. <td valign="top">compile</td>
  67. <td valign="top">Whether the NetRexx compiler should compile the
  68. generated java code</td>
  69. <td valign="top" align="center">No</td>
  70. </tr>
  71. <tr>
  72. <td valign="top">console</td>
  73. <td valign="top">Whether or not messages should be displayed on the
  74. 'console'</td>
  75. <td valign="top" align="center">No</td>
  76. </tr>
  77. <tr>
  78. <td valign="top">crossref</td>
  79. <td valign="top">Whether variable cross references are generated</td>
  80. <td valign="top" align="center">No</td>
  81. </tr>
  82. <tr>
  83. <td valign="top">decimal</td>
  84. <td valign="top">Whether decimal arithmetic should be used for the
  85. NetRexx code</td>
  86. <td valign="top" align="center">No</td>
  87. </tr>
  88. <tr>
  89. <td valign="top">defaultexcludes</td>
  90. <td valign="top">indicates whether default excludes should be used or not
  91. (&quot;yes&quot;/&quot;no&quot;). Default excludes are used when
  92. omitted.</td>
  93. <td valign="top" align="center">No</td>
  94. </tr>
  95. <tr>
  96. <td valign="top">destDir</td>
  97. <td valign="top">the destination directory into which the NetRexx
  98. source files should be copied and then compiled</td>
  99. <td valign="top" align="center">Yes</td>
  100. </tr>
  101. <tr>
  102. <td valign="top">diag</td>
  103. <td valign="top">Whether diagnostic information about the compile is
  104. generated</td>
  105. <td valign="top" align="center">No</td>
  106. </tr>
  107. <tr>
  108. <td valign="top">excludes</td>
  109. <td valign="top">comma separated list of patterns of files that must be
  110. excluded. No files (except default excludes) are excluded when
  111. omitted.</td>
  112. <td valign="top" align="center">No</td>
  113. </tr>
  114. <tr>
  115. <td valign="top">excludesfile</td>
  116. <td valign="top">the name of a file. Each line of this file is
  117. taken to be an exclude pattern</td>
  118. <td valign="top" align="center">No</td>
  119. </tr>
  120. <tr>
  121. <td valign="top">explicit</td>
  122. <td valign="top">Whether variables must be declared explicitly
  123. before use</td>
  124. <td valign="top" align="center">No</td>
  125. </tr>
  126. <tr>
  127. <td valign="top">format</td>
  128. <td valign="top">Whether the generated java code is formatted nicely
  129. or left to match NetRexx line numbers for call stack debugging</td>
  130. <td valign="top" align="center">No</td>
  131. </tr>
  132. <tr>
  133. <td valign="top">includes</td>
  134. <td valign="top">comma separated list of patterns of files that must be
  135. included. All files are included when omitted.</td>
  136. <td valign="top" align="center">No</td>
  137. </tr>
  138. <tr>
  139. <td valign="top">includesfile</td>
  140. <td valign="top">the name of a file. Each line of this file is
  141. taken to be an include pattern</td>
  142. <td valign="top" align="center">No</td>
  143. </tr>
  144. <tr>
  145. <td valign="top">java</td>
  146. <td valign="top">Whether the generated java code is produced</td>
  147. <td valign="top" align="center">No</td>
  148. </tr>
  149. <tr>
  150. <td valign="top">keep</td>
  151. <td valign="top">Sets whether the generated java source file should be kept
  152. after compilation. The generated files will have an extension of
  153. .java.keep, <b>not</b> .java</td>
  154. <td valign="top" align="center">No</td>
  155. </tr>
  156. <tr>
  157. <td valign="top">logo</td>
  158. <td valign="top">Whether the compiler text logo is displayed when
  159. compiling</td>
  160. <td valign="top" align="center">No</td>
  161. </tr>
  162. <tr>
  163. <td valign="top">replace</td>
  164. <td valign="top">Whether the generated .java file should be replaced
  165. when compiling</td>
  166. <td valign="top" align="center">No</td>
  167. </tr>
  168. <tr>
  169. <td valign="top">savelog</td>
  170. <td valign="top">Whether the compiler messages will be written to
  171. NetRexxC.log as well as to the console</td>
  172. <td valign="top" align="center">No</td>
  173. </tr>
  174. <tr>
  175. <td valign="top">sourcedir</td>
  176. <td valign="top">Tells the NetRexx compiler to store the class files in the
  177. same directory as the source files. The alternative is the working
  178. directory</td>
  179. <td valign="top" align="center">No</td>
  180. </tr>
  181. <tr>
  182. <td valign="top">srcDir</td>
  183. <td valign="top">Set the source dir to find the source NetRexx
  184. files</td>
  185. <td valign="top" align="center">Yes</td>
  186. </tr>
  187. <tr>
  188. <td valign="top">strictargs</td>
  189. <td valign="top">Tells the NetRexx compiler that method calls always
  190. need parentheses, even if no arguments are needed, e.g.
  191. <code>aStringVar.getBytes</code> vs.
  192. <code>aStringVar.getBytes()</code></td>
  193. <td valign="top" align="center">No</td>
  194. </tr>
  195. <tr>
  196. <td valign="top">strictassign</td>
  197. <td valign="top">Tells the NetRexx compile that assignments must
  198. match exactly on type</td>
  199. <td valign="top" align="center">No</td>
  200. </tr>
  201. <tr>
  202. <td valign="top">strictcase</td>
  203. <td valign="top">Specifies whether the NetRexx compiler should be
  204. case sensitive or not</td>
  205. <td valign="top" align="center">No</td>
  206. </tr>
  207. <tr>
  208. <td valign="top">strictimport</td>
  209. <td valign="top">Whether classes need to be imported explicitly using an
  210. <code>import</code> statement. By default the NetRexx compiler will
  211. import certain packages automatically</td>
  212. <td valign="top" align="center">No</td>
  213. </tr>
  214. <tr>
  215. <td valign="top">strictprops</td>
  216. <td valign="top">Whether local properties need to be qualified
  217. explicitly using <code>this</code></td>
  218. <td valign="top" align="center">No</td>
  219. </tr>
  220. <tr>
  221. <td valign="top">strictsignal</td>
  222. <td valign="top">Whether the compiler should force catching of
  223. exceptions by explicitly named types</td>
  224. <td valign="top" align="center">No</td>
  225. </tr>
  226. <tr>
  227. <td valign="top">symbols</td>
  228. <td valign="top">Whether debug symbols should be generated into the
  229. class file</td>
  230. <td valign="top" align="center">No</td>
  231. </tr>
  232. <tr>
  233. <td valign="top">time</td>
  234. <td valign="top">Asks the NetRexx compiler to print compilation
  235. times to the console</td>
  236. <td valign="top" align="center">No</td>
  237. </tr>
  238. <tr>
  239. <td valign="top">trace</td>
  240. <td valign="top">Turns on or off tracing and directs the resultant
  241. trace output</td>
  242. <td valign="top" align="center">No</td>
  243. </tr>
  244. <tr>
  245. <td valign="top">utf8</td>
  246. <td valign="top">Tells the NetRexx compiler that the source is in UTF8</td>
  247. <td valign="top" align="center">No</td>
  248. </tr>
  249. <tr>
  250. <td valign="top">verbose</td>
  251. <td valign="top">Whether lots of warnings and error messages should
  252. be generated</td>
  253. <td valign="top" align="center">Yes</td>
  254. </tr>
  255. </table>
  256. <h3>Examples</h3>
  257. <blockquote>
  258. <p><code>&lt;netrexxc srcDir=&quot;/source/project&quot;
  259. includes=&quot;vnr/util/*&quot;
  260. destDir=&quot;/source/project/build&quot;
  261. classpath=&quot;/source/project2/proj.jar&quot;
  262. comments=&quot;true&quot;
  263. crossref=&quot;false&quot; replace=&quot;true&quot;
  264. keep=&quot;true&quot;/&gt;</code>
  265. </p>
  266. </blockquote>
  267. <hr>
  268. <p align="center">Copyright &copy; 2000,2001 Apache Software Foundation. All rights
  269. Reserved.</p>
  270. </body>
  271. </html>