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 12 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Language" content="en-us">
  4. <title>NetRexxC Task</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. <p>All properties except classpath, srcdir and destDir are also available as properties in the form
  36. <code>ant.netrexxc.<i>attributename</i></code>, eg.<br>
  37. <code>&lt;property name="ant.netrexxc.verbose" value="noverbose"/&gt;</code><br>
  38. or from the command line as<br>
  39. <code>ant -Dant.netrexxc.verbose=noverbose ...</code>
  40. </p>
  41. <h3>Parameters</h3>
  42. <table border="1" cellpadding="2" cellspacing="0">
  43. <tr>
  44. <td valign="top"><b>Attribute</b></td>
  45. <td valign="top"><b>Description</b></td>
  46. <td align="center" valign="top"><b>Required</b></td>
  47. </tr>
  48. <tr>
  49. <td valign="top">binary</td>
  50. <td valign="top">Whether literals are treated as the java binary
  51. type rather than the NetRexx types</td>
  52. <td valign="top" align="center">No</td>
  53. </tr>
  54. <tr>
  55. <td valign="top">classpath</td>
  56. <td valign="top">The classpath to use during compilation</td>
  57. <td valign="top" align="center">No</td>
  58. </tr>
  59. <tr>
  60. <td valign="top">comments</td>
  61. <td valign="top">Whether comments are passed through to the
  62. generated java source</td>
  63. <td valign="top" align="center">No</td>
  64. </tr>
  65. <tr>
  66. <td valign="top">compact</td>
  67. <td valign="top">Whether error messages come out in compact or
  68. verbose format. Default is the compact format.</td>
  69. <td valign="top" align="center">No</td>
  70. </tr>
  71. <tr>
  72. <td valign="top">compile</td>
  73. <td valign="top">Whether the NetRexx compiler should compile the
  74. generated java code</td>
  75. <td valign="top" align="center">No</td>
  76. </tr>
  77. <tr>
  78. <td valign="top">console</td>
  79. <td valign="top">Whether or not messages should be displayed on the
  80. 'console'</td>
  81. <td valign="top" align="center">No</td>
  82. </tr>
  83. <tr>
  84. <td valign="top">crossref</td>
  85. <td valign="top">Whether variable cross references are generated</td>
  86. <td valign="top" align="center">No</td>
  87. </tr>
  88. <tr>
  89. <td valign="top">decimal</td>
  90. <td valign="top">Whether decimal arithmetic should be used for the
  91. NetRexx code</td>
  92. <td valign="top" align="center">No</td>
  93. </tr>
  94. <tr>
  95. <td valign="top">defaultexcludes</td>
  96. <td valign="top">indicates whether default excludes should be used or not
  97. (&quot;yes&quot;/&quot;no&quot;). Default excludes are used when
  98. omitted.</td>
  99. <td valign="top" align="center">No</td>
  100. </tr>
  101. <tr>
  102. <td valign="top">destDir</td>
  103. <td valign="top">the destination directory into which the NetRexx
  104. source files should be copied and then compiled</td>
  105. <td valign="top" align="center">Yes</td>
  106. </tr>
  107. <tr>
  108. <td valign="top">diag</td>
  109. <td valign="top">Whether diagnostic information about the compile is
  110. generated</td>
  111. <td valign="top" align="center">No</td>
  112. </tr>
  113. <tr>
  114. <td valign="top">excludes</td>
  115. <td valign="top">comma- or space-separated list of patterns of files that must be
  116. excluded. No files (except default excludes) are excluded when
  117. omitted.</td>
  118. <td valign="top" align="center">No</td>
  119. </tr>
  120. <tr>
  121. <td valign="top">excludesfile</td>
  122. <td valign="top">the name of a file. Each line of this file is
  123. taken to be an exclude pattern</td>
  124. <td valign="top" align="center">No</td>
  125. </tr>
  126. <tr>
  127. <td valign="top">explicit</td>
  128. <td valign="top">Whether variables must be declared explicitly
  129. before use</td>
  130. <td valign="top" align="center">No</td>
  131. </tr>
  132. <tr>
  133. <td valign="top">format</td>
  134. <td valign="top">Whether the generated java code is formatted nicely
  135. or left to match NetRexx line numbers for call stack debugging</td>
  136. <td valign="top" align="center">No</td>
  137. </tr>
  138. <tr>
  139. <td valign="top">includes</td>
  140. <td valign="top">comma- or space-separated list of patterns of files that must be
  141. included. All files are included when omitted.</td>
  142. <td valign="top" align="center">No</td>
  143. </tr>
  144. <tr>
  145. <td valign="top">includesfile</td>
  146. <td valign="top">the name of a file. Each line of this file is
  147. taken to be an include pattern</td>
  148. <td valign="top" align="center">No</td>
  149. </tr>
  150. <tr>
  151. <td valign="top">java</td>
  152. <td valign="top">Whether the generated java code is produced</td>
  153. <td valign="top" align="center">No</td>
  154. </tr>
  155. <tr>
  156. <td valign="top">keep</td>
  157. <td valign="top">Sets whether the generated java source file should be kept
  158. after compilation. The generated files will have an extension of
  159. .java.keep, <b>not</b> .java</td>
  160. <td valign="top" align="center">No</td>
  161. </tr>
  162. <tr>
  163. <td valign="top">logo</td>
  164. <td valign="top">Whether the compiler text logo is displayed when
  165. compiling</td>
  166. <td valign="top" align="center">No</td>
  167. </tr>
  168. <tr>
  169. <td valign="top">replace</td>
  170. <td valign="top">Whether the generated .java file should be replaced
  171. when compiling</td>
  172. <td valign="top" align="center">No</td>
  173. </tr>
  174. <tr>
  175. <td valign="top">savelog</td>
  176. <td valign="top">Whether the compiler messages will be written to
  177. NetRexxC.log as well as to the console</td>
  178. <td valign="top" align="center">No</td>
  179. </tr>
  180. <tr>
  181. <td valign="top">sourcedir</td>
  182. <td valign="top">Tells the NetRexx compiler to store the class files in the
  183. same directory as the source files. The alternative is the working
  184. directory</td>
  185. <td valign="top" align="center">No</td>
  186. </tr>
  187. <tr>
  188. <td valign="top">srcDir</td>
  189. <td valign="top">Set the source dir to find the source NetRexx
  190. files</td>
  191. <td valign="top" align="center">Yes</td>
  192. </tr>
  193. <tr>
  194. <td valign="top">strictargs</td>
  195. <td valign="top">Tells the NetRexx compiler that method calls always
  196. need parentheses, even if no arguments are needed, e.g.
  197. <code>aStringVar.getBytes</code> vs.
  198. <code>aStringVar.getBytes()</code></td>
  199. <td valign="top" align="center">No</td>
  200. </tr>
  201. <tr>
  202. <td valign="top">strictassign</td>
  203. <td valign="top">Tells the NetRexx compile that assignments must
  204. match exactly on type</td>
  205. <td valign="top" align="center">No</td>
  206. </tr>
  207. <tr>
  208. <td valign="top">strictcase</td>
  209. <td valign="top">Specifies whether the NetRexx compiler should be
  210. case sensitive or not</td>
  211. <td valign="top" align="center">No</td>
  212. </tr>
  213. <tr>
  214. <td valign="top">strictimport</td>
  215. <td valign="top">Whether classes need to be imported explicitly using an
  216. <code>import</code> statement. By default the NetRexx compiler will
  217. import certain packages automatically</td>
  218. <td valign="top" align="center">No</td>
  219. </tr>
  220. <tr>
  221. <td valign="top">strictprops</td>
  222. <td valign="top">Whether local properties need to be qualified
  223. explicitly using <code>this</code></td>
  224. <td valign="top" align="center">No</td>
  225. </tr>
  226. <tr>
  227. <td valign="top">strictsignal</td>
  228. <td valign="top">Whether the compiler should force catching of
  229. exceptions by explicitly named types</td>
  230. <td valign="top" align="center">No</td>
  231. </tr>
  232. <tr>
  233. <td valign="top">symbols</td>
  234. <td valign="top">Whether debug symbols should be generated into the
  235. class file</td>
  236. <td valign="top" align="center">No</td>
  237. </tr>
  238. <tr>
  239. <td valign="top">time</td>
  240. <td valign="top">Asks the NetRexx compiler to print compilation
  241. times to the console</td>
  242. <td valign="top" align="center">No</td>
  243. </tr>
  244. <tr>
  245. <td valign="top">trace</td>
  246. <td valign="top">Turns on or off tracing and directs the resultant
  247. trace output</td>
  248. <td valign="top" align="center">No</td>
  249. </tr>
  250. <tr>
  251. <td valign="top">utf8</td>
  252. <td valign="top">Tells the NetRexx compiler that the source is in UTF8</td>
  253. <td valign="top" align="center">No</td>
  254. </tr>
  255. <tr>
  256. <td valign="top">verbose</td>
  257. <td valign="top">Whether lots of warnings and error messages should
  258. be generated</td>
  259. <td valign="top" align="center">No</td>
  260. </tr>
  261. <tr>
  262. <td valign="top">suppressMethodArgumentNotUsed</td>
  263. <td valign="top">Tells whether we should filter out the
  264. &amp;Method argument not used&amp; messages in strictargs mode.</td>
  265. <td valign="top" align="center">no</td>
  266. </tr>
  267. <tr>
  268. <td valign="top">suppressPrivatePropertyNotUsed</td>
  269. <td valign="top">Tells whether we should filter out the
  270. &amp;Private Property defined, but not used&amp; messages in strictargs mode.</td>
  271. <td valign="top" align="center">no</td>
  272. </tr>
  273. <tr>
  274. <td valign="top">suppressVariableNotUsed</td>
  275. <td valign="top">Tells whether we should filter out the
  276. &amp;Variable set but not used&amp; messages in strictargs mode.
  277. Please be careful with this one, as you can hide errors behind it!</td>
  278. <td valign="top" align="center">no</td>
  279. </tr>
  280. <tr>
  281. <td valign="top">suppressExceptionNotSignalled</td>
  282. <td valign="top">Tells whether we should filter out the
  283. &amp;Exception is declared, but not signalled within the method&amp;
  284. messages in strictsignal mode.</td>
  285. <td valign="top" align="center">no</td>
  286. </tr>
  287. <tr>
  288. <td valign="top">suppressDeprecation</td>
  289. <td valign="top">Tells wether we should filter out any deprecation-messages
  290. of the compiler out.</td>
  291. <td valign="top" align="center">no</td>
  292. </tr>
  293. </table>
  294. <h3>Examples</h3>
  295. <blockquote>
  296. <p><code>&lt;netrexxc srcDir=&quot;/source/project&quot;
  297. includes=&quot;vnr/util/*&quot;
  298. destDir=&quot;/source/project/build&quot;
  299. classpath=&quot;/source/project2/proj.jar&quot;
  300. comments=&quot;true&quot;
  301. crossref=&quot;false&quot; replace=&quot;true&quot;
  302. keep=&quot;true&quot;/&gt;</code>
  303. </p>
  304. </blockquote>
  305. <hr>
  306. <p align="center">Copyright &copy; 2000-2002 Apache Software Foundation. All rights
  307. Reserved.</p>
  308. </body>
  309. </html>