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.

javac.html 21 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Language" content="en-us">
  4. <title>Javac Task</title>
  5. </head>
  6. <body>
  7. <h2><a name="javac">Javac</a></h2>
  8. <h3>Description</h3>
  9. <p>Compiles a Java source tree.</p>
  10. <p>The source and destination directory will be recursively scanned for Java
  11. source files to compile. Only Java files that have no corresponding
  12. <code>.class</code> file
  13. or where the class file is older than the
  14. <code>.java</code> file will be compiled.</p>
  15. <p>Note: Ant uses only the names of the source and class files to find
  16. the classes that need a rebuild. It will not scan the source and therefore
  17. will have no knowledge about nested classes, classes that are named different
  18. from the source file, and so on. See the
  19. <a href="../OptionalTasks/depend.html"><code>&lt;depend&gt;</code></a> task
  20. for dependency checking based on other than just
  21. existence/modification times.
  22. <p>When the source files are part of a package, the directory structure of
  23. the source tree should follow the package
  24. hierarchy.</p>
  25. <p>It is possible to refine the set of files that are being compiled.
  26. This can be done with the <code>includes</code>, <code>includesfile</code>,
  27. <code>excludes</code>, and <code>excludesfile</code>
  28. attributes. With the <code>includes</code> or
  29. <code>includesfile</code> attribute, you specify the files you want to
  30. have included.
  31. The <code>exclude</code> or <code>excludesfile</code> attribute is used
  32. to specify
  33. the files you want to have excluded. In both cases, the list of files
  34. can be specified by either the filename, relative to the directory(s) specified
  35. in the <code>srcdir</code> attribute or nested <code>&lt;src&gt;</code>
  36. element(s), or by using wildcard patterns. See the section on
  37. <a href="../dirtasks.html#directorybasedtasks">directory-based tasks</a>,
  38. for information on how the
  39. inclusion/exclusion of files works, and how to write wildcard patterns.</p>
  40. <p>It is possible to use different compilers. This can be specified by
  41. either setting the global <code>build.compiler</code> property, which will
  42. affect all <code>&lt;javac&gt;</code> tasks throughout the build, or by
  43. setting the <code>compiler</code> attribute, specific to the current
  44. <code>&lt;javac&gt;</code> task.
  45. <a name="compilervalues">Valid values for either the
  46. <code>build.compiler</code> property or the <code>compiler</code>
  47. attribute are:</p>
  48. <ul>
  49. <li><code>classic</code> (the standard compiler of JDK 1.1/1.2) &ndash;
  50. <code>javac1.1</code> and
  51. <code>javac1.2</code> can be used as aliases.</li>
  52. <li><code>modern</code> (the standard compiler of JDK 1.3/1.4) &ndash;
  53. <code>javac1.3</code> and
  54. <code>javac1.4</code> can be used as aliases.</li>
  55. <li><code>jikes</code> (the <a
  56. href="http://oss.software.ibm.com/developerworks/opensource/jikes/project" target="_top">Jikes</a>
  57. compiler).</li>
  58. <li><code>jvc</code> (the Command-Line Compiler from Microsoft's SDK
  59. for Java / Visual J++) &ndash; <code>microsoft</code> can be used
  60. as an alias.</li>
  61. <li><code>kjc</code> (the <a href="http://www.dms.at/kopi/" target="_top">kopi</a>
  62. compiler).</li>
  63. <li><code>gcj</code> (the gcj compiler from gcc).</li>
  64. <li><code>sj</code> (Symantec java compiler) &ndash;
  65. <code>symantec</code> can be used as an alias.</li>
  66. <li><code>extJavac</code> (run either modern or classic in a JVM of
  67. its own).</li>
  68. </ul>
  69. </a>
  70. <p>For JDK 1.1/1.2, <code>classic</code> is the default.
  71. For JDK 1.3/1.4, <code>modern</code> is the default.
  72. If you wish to use a different compiler interface than those
  73. supplied, you can write a class that implements the CompilerAdapter interface
  74. (<code>package org.apache.tools.ant.taskdefs.compilers</code>). Supply the full
  75. classname in the <code>build.compiler</code> property or the
  76. <code>compiler</code> attribute.
  77. </p>
  78. <p>The fork attribute overrides the <code>build.compiler</code> property
  79. or <code>compiler</code> attribute setting and
  80. expects a JDK1.1 or higher to be set in <code>JAVA_HOME</code>.
  81. </p>
  82. <p>This task will drop all entries that point to non-existent
  83. files/directories from the classpath it passes to the compiler.</p>
  84. <p><strong>Windows Note:</strong>When the modern compiler is used
  85. in unforked mode on Windows, it locks up the files present in the
  86. classpath of the <code>&lt;javac&gt;</code> task, and does not release them.
  87. The side effect of this is that you will not be able to delete or move
  88. those files later on in the build. The workaround is to fork when
  89. invoking the compiler.</p>
  90. </p>
  91. <h3>Parameters</h3>
  92. <table border="1" cellpadding="2" cellspacing="0">
  93. <tr>
  94. <td valign="top"><b>Attribute</b></td>
  95. <td valign="top"><b>Description</b></td>
  96. <td align="center" valign="top"><b>Required</b></td>
  97. </tr>
  98. <tr>
  99. <td valign="top">srcdir</td>
  100. <td valign="top">Location of the java files. (See the
  101. <a href="#srcdirnote">Note</a> below.)</td>
  102. <td align="center" valign="top">Yes, unless nested <code>&lt;src&gt;</code> elements are present.</td>
  103. </tr>
  104. <tr>
  105. <td valign="top">destdir</td>
  106. <td valign="top">Location to store the class files.</td>
  107. <td align="center" valign="top">No</td>
  108. </tr>
  109. <tr>
  110. <td valign="top">includes</td>
  111. <td valign="top">Comma-separated list of files (may be specified using
  112. wildcard patterns) that must be
  113. included; all <code>.java</code> files are included when omitted.</td>
  114. <td valign="top" align="center">No</td>
  115. </tr>
  116. <tr>
  117. <td valign="top">includesfile</td>
  118. <td valign="top">The name of a file that contains a list of files to
  119. include (may be specified using wildcard patterns).</td>
  120. <td valign="top" align="center">No</td>
  121. </tr>
  122. <tr>
  123. <td valign="top">excludes</td>
  124. <td valign="top">Comma-separated list of files (may be specified using
  125. wildcard patterns) that must be excluded; no files (except default
  126. excludes) are excluded when omitted.</td>
  127. <td valign="top" align="center">No</td>
  128. </tr>
  129. <tr>
  130. <td valign="top">excludesfile</td>
  131. <td valign="top">The name of a file that contains a list of files to
  132. exclude (may be specified using wildcard patterns).</td>
  133. <td valign="top" align="center">No</td>
  134. </tr>
  135. <tr>
  136. <td valign="top">classpath</td>
  137. <td valign="top">The classpath to use.</td>
  138. <td align="center" valign="top">No</td>
  139. </tr>
  140. <tr>
  141. <td valign="top">sourcepath</td>
  142. <td valign="top">The sourcepath to use; defaults to the value of the srcdir attribute (or nested <code>&lt;src&gt;</code> elements).
  143. To suppress the sourcepath switch, use <code>sourcepath=&quot;&quot;</code>.</td>
  144. <td align="center" valign="top">No</td>
  145. </tr>
  146. <tr>
  147. <td valign="top">bootclasspath</td>
  148. <td valign="top">Location of bootstrap class files.</td>
  149. <td align="center" valign="top">No</td>
  150. </tr>
  151. <tr>
  152. <td valign="top">classpathref</td>
  153. <td valign="top">The classpath to use, given as a
  154. <a href="../using.html#references">reference</a> to a path defined elsewhere.</td>
  155. <td align="center" valign="top">No</td>
  156. </tr>
  157. <tr>
  158. <td valign="top">sourcepathref</td>
  159. <td valign="top">The sourcepath to use, given as a
  160. <a href="../using.html#references">reference</a> to a path defined elsewhere.</td>
  161. <td align="center" valign="top">No</td>
  162. </tr>
  163. <tr>
  164. <td valign="top">bootclasspathref</td>
  165. <td valign="top">Location of bootstrap class files, given as a
  166. <a href="../using.html#references">reference</a> to a path defined elsewhere.</td>
  167. <td align="center" valign="top">No</td>
  168. </tr>
  169. <tr>
  170. <td valign="top">extdirs</td>
  171. <td valign="top">Location of installed extensions.</td>
  172. <td align="center" valign="top">No</td>
  173. </tr>
  174. <tr>
  175. <td valign="top">encoding</td>
  176. <td valign="top">Encoding of source files. (Note: gcj doesn't support
  177. this option yet.)</td>
  178. <td align="center" valign="top">No</td>
  179. </tr>
  180. <tr>
  181. <td valign="top">nowarn</td>
  182. <td valign="top">Indicates whether the <code>-nowarn</code> switch
  183. should be passed to the compiler; defaults to <code>off</code>.</td>
  184. <td align="center" valign="top">No</td>
  185. </tr>
  186. <tr>
  187. <td valign="top">debug</td>
  188. <td valign="top">Indicates whether source should be compiled with debug
  189. information; defaults to <code>off</code>.</td>
  190. <td align="center" valign="top">No</td>
  191. </tr>
  192. <tr>
  193. <td valign="top">debuglevel</td>
  194. <td valign="top">Keyword list to be appended to the <code>-g</code>
  195. command-line switch. This will be ignored by all implementations except
  196. <code>modern</code> and <code>classic(ver &gt;= 1.2)</code>.
  197. Legal values are <code>none</code> or a comma-separated list of the
  198. following keywords:
  199. <code>lines</code>, <code>vars</code>, and <code>source</code>.
  200. If <code>debuglevel</code> is not specified, by default,
  201. <code>:none</code> will be
  202. appended to <code>-g</code>. If <code>debug</code> is not turned on,
  203. this attribute will be ignored.
  204. </td>
  205. <td align="center" valign="top">No</td>
  206. </tr>
  207. <tr>
  208. <td valign="top">optimize</td>
  209. <td valign="top">Indicates whether source should be compiled with
  210. optimization; defaults to <code>off</code>.</td>
  211. <td align="center" valign="top">No</td>
  212. </tr>
  213. <tr>
  214. <td valign="top">deprecation</td>
  215. <td valign="top">Indicates whether source should be compiled with
  216. deprecation information; defaults to <code>off</code>.</td>
  217. <td align="center" valign="top">No</td>
  218. </tr>
  219. <tr>
  220. <td valign="top">target</td>
  221. <td valign="top">Generate class files for specific VM version (e.g.,
  222. <code>1.1</code> or <code>1.2</code>).</td>
  223. <td align="center" valign="top">No</td>
  224. </tr>
  225. <tr>
  226. <td valign="top">verbose</td>
  227. <td valign="top">Asks the compiler for verbose output.</td>
  228. <td align="center" valign="top">No</td>
  229. </tr>
  230. <tr>
  231. <td valign="top">depend</td> <td valign="top">Enables dependency-tracking
  232. for compilers that support this (<code>jikes</code> and
  233. <code>classic</code>).</td>
  234. <td align="center" valign="top">No</td>
  235. </tr>
  236. <tr>
  237. <td valign="top">includeAntRuntime</td>
  238. <td valign="top">Whether to include the Ant run-time libraries in the
  239. classpath; defaults to <code>yes</code>.</td>
  240. <td align="center" valign="top">No</td>
  241. </tr>
  242. <tr>
  243. <td valign="top">includeJavaRuntime</td>
  244. <td valign="top">Whether to include the default run-time
  245. libraries from the executing VM in the classpath;
  246. defaults to <code>yes</code>.</td>
  247. <td align="center" valign="top">No</td>
  248. </tr>
  249. <tr>
  250. <td valign="top">fork</td>
  251. <td valign="top">Whether to execute <code>javac</code> using the
  252. JDK compiler externally; defaults to <code>no</code>.</td>
  253. <td align="center" valign="top">No</td>
  254. </tr>
  255. <tr>
  256. <td valign="top">executable</td>
  257. <td valign="top">Complete path to the <code>javac</code>
  258. executable to use in case of <code>fork=&quot;yes&quot;</code>.
  259. Defaults to the compiler of the Java version that is currently
  260. running Ant. Ignored if <code>fork=&quot;no&quot;</code></td>
  261. <td align="center" valign="top">No</td>
  262. </tr>
  263. <tr>
  264. <td valign="top">memoryInitialSize</td>
  265. <td valign="top">The initial size of the memory for the underlying VM,
  266. if <code>javac</code> is run externally; ignored otherwise. Defaults
  267. to the standard VM memory setting.
  268. (Examples: <code>83886080</code>, <code>81920k</code>, or
  269. <code>80m</code>)</td>
  270. <td align="center" valign="top">No</td>
  271. </tr>
  272. <tr>
  273. <td valign="top">memoryMaximumSize</td>
  274. <td valign="top">The maximum size of the memory for the underlying VM,
  275. if <code>javac</code> is run externally; ignored otherwise. Defaults
  276. to the standard VM memory setting.
  277. (Examples: <code>83886080</code>, <code>81920k</code>, or
  278. <code>80m</code>)</td>
  279. <td align="center" valign="top">No</td>
  280. </tr>
  281. <tr>
  282. <td valign="top">failonerror</td> <td valign="top">
  283. Indicates whether the build will continue even if there are compilation errors; defaults to <code>true</code>.
  284. </td>
  285. <td align="center" valign="top">No</td>
  286. </tr>
  287. <tr>
  288. <td valign="top">source</td>
  289. <td valign="top">Value of the <code>-source</code> command-line
  290. switch; will be ignored by all implementations except
  291. <code>modern</code> and <code>jikes</code>.<br>
  292. If you use this attribute together with <code>jikes</code>, you
  293. must make sure that your version of jikes supports the
  294. <code>-source</code> switch.<br>
  295. Legal values are <code>1.3</code> and <code>1.4</code> &ndash; by
  296. default, no <code>-source</code> argument will be used at
  297. all.</td>
  298. <td align="center" valign="top">No</td>
  299. </tr>
  300. <tr>
  301. <td valign="top">compiler</td>
  302. <td valign="top">The compiler implementation to use.
  303. If this attribute is not set, the value of the
  304. <code>build.compiler</code> property, if set, will be used.
  305. Otherwise, the default compiler for the current VM will be used.
  306. (See the above <a href="#compilervalues">list</a> of valid
  307. compilers.)</td>
  308. <td align="center" valign="top">No</td>
  309. </tr>
  310. <tr>
  311. <td valign="top">listfiles</td>
  312. <td valign="top">Indicates whether the source files to be compiled will
  313. be listed; defaults to <code>no</code>.</td>
  314. <td align="center" valign="top">No</td>
  315. </tr>
  316. </table>
  317. <h3>Parameters specified as nested elements</h3>
  318. <p>This task forms an implicit <a href="../CoreTypes/fileset.html">FileSet</a> and
  319. supports all attributes of <code>&lt;fileset&gt;</code>
  320. (<code>dir</code> becomes <code>srcdir</code>) as well as the nested
  321. <code>&lt;include&gt;</code>, <code>&lt;exclude&gt;</code> and
  322. <code>&lt;patternset&gt;</code> elements.</p>
  323. <h4><code>src</code>, <code>classpath</code>, <code>sourcepath</code>,
  324. <code>bootclasspath</code> and <code>extdirs</code></h4>
  325. <p><code>&lt;javac&gt;</code>'s <code>srcdir</code>, <code>classpath</code>,
  326. <code>sourcepath</code>, <code>bootclasspath</code>, and
  327. <code>extdirs</code> attributes are
  328. <a href="../using.html#path">path-like structures</a>
  329. and can also be set via nested
  330. <code>&lt;src&gt;</code>,
  331. <code>&lt;classpath&gt;</code>,
  332. <code>&lt;sourcepath&gt;</code>,
  333. <code>&lt;bootclasspath&gt;</code> and
  334. <code>&lt;extdirs&gt;</code> elements, respectively.</p>
  335. <h4>compilerarg</h4>
  336. <p>You can specify additional command line arguments for the compiler
  337. with nested <code>&lt;compilerarg&gt;</code> elements. These elements
  338. are specified like <a href="../using.html#arg">Command-line
  339. Arguments</a> but have an additional attribute that can be used to
  340. enable arguments only if a given compiler implementation will be
  341. used.</p>
  342. <table border="1" cellpadding="2" cellspacing="0">
  343. <tr>
  344. <td width="12%" valign="top"><b>Attribute</b></td>
  345. <td width="78%" valign="top"><b>Description</b></td>
  346. <td width="10%" valign="top"><b>Required</b></td>
  347. </tr>
  348. <tr>
  349. <td valign="top">value</td>
  350. <td align="center" rowspan="4">See
  351. <a href="../using.html#arg">Command-line Arguments</a>.</td>
  352. <td align="center" rowspan="4">Exactly one of these.</td>
  353. </tr>
  354. <tr>
  355. <td valign="top">line</td>
  356. </tr>
  357. <tr>
  358. <td valign="top">file</td>
  359. </tr>
  360. <tr>
  361. <td valign="top">path</td>
  362. </tr>
  363. <tr>
  364. <td valign="top">compiler</td>
  365. <td>Only pass the specified argument if the chosen
  366. compiler implementation matches the value of this attribute.
  367. Legal values are the
  368. same as those in the above <a href="#compilervalues">list</a> of valid
  369. compilers.)</td>
  370. <td align="center">No</td>
  371. </tr>
  372. </table>
  373. <h3>Examples</h3>
  374. <pre> &lt;javac srcdir=&quot;${src}&quot;
  375. destdir=&quot;${build}&quot;
  376. classpath=&quot;xyz.jar&quot;
  377. debug=&quot;on&quot;
  378. /&gt;</pre>
  379. <p>compiles all <code>.java</code> files under the <code>${src}</code>
  380. directory, and stores
  381. the <code>.class</code> files in the <code>${build}</code> directory.
  382. The classpath used includes <code>xyz.jar</code>, and compiling with
  383. debug information is on.</p>
  384. <pre> &lt;javac srcdir=&quot;${src}&quot;
  385. destdir=&quot;${build}&quot;
  386. fork=&quot;true&quot;
  387. /&gt;</pre>
  388. <p>compiles all <code>.java</code> files under the <code>${src}</code>
  389. directory, and stores the <code>.class</code> files in the
  390. <code>${build}</code> directory. This will fork off the javac
  391. compiler using the default <code>javac</code> executable.</p>
  392. <pre> &lt;javac srcdir=&quot;${src}&quot;
  393. destdir=&quot;${build}&quot;
  394. fork=&quot;java$$javac.exe&quot;
  395. /&gt;</pre>
  396. <p>compiles all <code>.java</code> files under the <code>${src}</code>
  397. directory, and stores the <code>.class</code> files in the
  398. <code>${build}</code> directory. This will fork off the javac
  399. compiler, using the executable named <code>java$javac.exe</code>. Note
  400. that the <code>$</code> sign needs to be escaped by a second one.</p>
  401. <pre> &lt;javac srcdir=&quot;${src}&quot;
  402. destdir=&quot;${build}&quot;
  403. includes=&quot;mypackage/p1/**,mypackage/p2/**&quot;
  404. excludes=&quot;mypackage/p1/testpackage/**&quot;
  405. classpath=&quot;xyz.jar&quot;
  406. debug=&quot;on&quot;
  407. /&gt;</pre>
  408. <p>compiles <code>.java</code> files under the <code>${src}</code>
  409. directory, and stores the
  410. <code>.class</code> files in the <code>${build}</code> directory.
  411. The classpath used includes <code>xyz.jar</code>, and debug information is on.
  412. Only files under <code>mypackage/p1</code> and <code>mypackage/p2</code> are
  413. used. All files in and below the <code>mypackage/p1/testpackage</code>
  414. directory are excluded from compilation.</p>
  415. <pre> &lt;javac srcdir=&quot;${src}:${src2}&quot;
  416. destdir=&quot;${build}&quot;
  417. includes=&quot;mypackage/p1/**,mypackage/p2/**&quot;
  418. excludes=&quot;mypackage/p1/testpackage/**&quot;
  419. classpath=&quot;xyz.jar&quot;
  420. debug=&quot;on&quot;
  421. /&gt;</pre>
  422. <p>is the same as the previous example, with the addition of a second
  423. source path, defined by
  424. the property <code>src2</code>. This can also be represented using nested
  425. <code>&lt;src&gt;</code> elements as follows:</p>
  426. <pre> &lt;javac destdir=&quot;${build}&quot;
  427. classpath=&quot;xyz.jar&quot;
  428. debug=&quot;on&quot;&gt;
  429. &lt;src path=&quot;${src}&quot;/&gt;
  430. &lt;src path=&quot;${src2}&quot;/&gt;
  431. &lt;include name=&quot;mypackage/p1/**&quot;/&gt;
  432. &lt;include name=&quot;mypackage/p2/**&quot;/&gt;
  433. &lt;exclude name=&quot;mypackage/p1/testpackage/**&quot;/&gt;
  434. &lt;/javac&gt;</pre>
  435. <p><a name="srcdirnote"><b>Note:</b></a>
  436. If you wish to compile only source files located in certain packages below a
  437. common root, use the <code>include</code>/<code>exclude</code> attributes
  438. or <code>&lt;include&gt;</code>/<code>&lt;exclude&gt;</code> nested elements
  439. to filter for these packages. Do not include part of your package structure
  440. in the <code>srcdir</code> attribute
  441. (or nested <code>&lt;src&gt;</code> elements), or Ant will recompile your
  442. source files every time you run your compile target. See the
  443. <a href="http://jakarta.apache.org/ant/faq.html#always-recompiles">Ant FAQ</a>
  444. for additional information.</p>
  445. <p><b>Note:</b> If you are using Ant on Windows and a new DOS window pops up
  446. for every use of an external compiler, this may be a problem of the JDK you are
  447. using. This problem may occur with all JDKs &lt; 1.2.</p>
  448. <h3>Jikes Notes</h3>
  449. Jikes supports some extra options, which can be set be defining
  450. the properties shown below prior to invoking the task. The setting
  451. for each property will be in affect for all <code>&lt;javac&gt;</code>
  452. tasks throughout the build.
  453. The Ant developers are aware that
  454. this is ugly and inflexible &ndash; expect a better solution in the future.
  455. All the options are boolean, and must be set to <code>true</code> or
  456. <code>yes</code> to be
  457. interpreted as anything other than false. By default,
  458. <code>build.compiler.warnings</code> is <code>true</code>,
  459. while all others are <code>false</code>.</p>
  460. <table border="1" cellpadding="2" cellspacing="0">
  461. <tr>
  462. <td valign="top"><b>Property</b></td>
  463. <td valign="top"><b>Description</b></td>
  464. <td align="center" valign="top"><b>Default</b></td>
  465. </tr>
  466. <tr>
  467. <td valign="top">
  468. build.compiler.emacs
  469. </td>
  470. <td valign="top">
  471. Enable emacs-compatible error messages.
  472. </td>
  473. <td valign="top">
  474. <code>false</code>
  475. </td>
  476. </tr>
  477. <tr>
  478. <td valign="top">
  479. build.compiler.fulldepend
  480. </td>
  481. <td valign="top">
  482. Enable full dependency checking; see<br>
  483. the <code>+F</code> switch in the Jikes manual.
  484. </td>
  485. <td valign="top">
  486. <code>false</code>
  487. </td>
  488. </tr>
  489. <tr>
  490. <td valign="top">
  491. build.compiler.pedantic
  492. </td>
  493. <td valign="top">
  494. Enable pedantic warnings.
  495. </td>
  496. <td valign="top">
  497. <code>false</code>
  498. </td>
  499. </tr>
  500. <tr>
  501. <td valign="top">
  502. build.compiler.warnings<br>
  503. <strong>Deprecated</strong>. Use
  504. <code>&lt;javac&gt;</code>'s <code>nowarn</code>
  505. attribute instead.
  506. </td>
  507. <td valign="top">
  508. Don't disable warning messages.
  509. </td>
  510. <td valign="top">
  511. <code>true</code>
  512. </td>
  513. </tr>
  514. </table>
  515. </p>
  516. <hr>
  517. <p align="center">Copyright &copy; 2001-2002 Apache Software Foundation.
  518. All rights Reserved.</p>
  519. </body>
  520. </html>