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

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