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.

problems.html 28 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <!-- GENERATED FILE, DO NOT EDIT, EDIT THE XML FILE IN xdocs INSTEAD! -->
  4. <head>
  5. <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  6. <title>Apache Ant - Having Problems?</title>
  7. <link type="text/css" href="./page.css" rel="stylesheet">
  8. <meta name="author" content="Conor MacNeill">
  9. <meta name="email" content="">
  10. </head>
  11. <body text="#000000" bgcolor="#ffffff">
  12. <table summary="navigation path" width="100%" border="0" cellpadding="0" cellspacing="0">
  13. <tr>
  14. <td nowrap="nowrap" valign="middle" bgcolor="#CFDCED" height="20"><img height="1" width="5" alt="" border="0" src="./images/spacer.gif"><font size="2" face="Arial, Helvetica, Sans-serif"><script src="./breadcrumbs.js" language="JavaScript" type="text/javascript"></script></font></td>
  15. </tr>
  16. <tr>
  17. <td bgcolor="#4C6C8F" height="2"><img height="2" width="2" alt="" border="0" src="./images/spacer.gif"></td>
  18. </tr>
  19. </table>
  20. <table summary="header with logos" width="100%" border="0" cellpadding="0" cellspacing="0">
  21. <tr>
  22. <td bgcolor="#294563"><a href="http://ant.apache.org/"><img border="0" alt="Apache Ant site" src="./images/group-logo.gif"></a></td><td width="100%" align="center" bgcolor="#294563"><a href="http://ant.apache.org/"><img alt="Apache Ant logo" border="0" src="./images/project-logo.gif"></a></td><td valign="top" rowspan="2" bgcolor="#294563">
  23. <form target="_blank" onsubmit="q.value = query.value + ' site:ant.apache.org'" action="http://www.google.com/search" method="get">
  24. <table summary="search" border="0" cellspacing="0" cellpadding="0" bgcolor="#4C6C8F">
  25. <tr>
  26. <td colspan="3"><img height="10" width="1" alt="" src="./images/spacer.gif"></td>
  27. </tr>
  28. <tr>
  29. <td><img height="1" width="1" alt="" src="./images/spacer.gif"></td><td nowrap="nowrap"><input name="q" type="hidden"><input size="15" id="query" type="text"><img height="1" width="5" alt="" src="./images/spacer.gif"><input name="Search" value="Search" type="submit">
  30. <br>
  31. <font face="Arial, Helvetica, Sans-serif" size="2" color="white">
  32. the Apache Ant site
  33. </font></td><td><img height="1" width="1" alt="" src="./images/spacer.gif"></td>
  34. </tr>
  35. <tr>
  36. <td><img alt="" border="0" height="10" width="9" src="./images/search-left.gif"></td><td><img height="1" width="1" alt="" src="./images/spacer.gif"></td><td><img alt="" border="0" height="10" width="9" src="./images/search-right.gif"></td>
  37. </tr>
  38. </table>
  39. </form>
  40. </td><td bgcolor="#294563"><img height="10" width="10" alt="" src="./images/spacer.gif"></td>
  41. </tr>
  42. <tr>
  43. <td valign="bottom" bgcolor="#294563" colspan="2">
  44. <div class="tab">
  45. <table summary="tab bar" border="0" cellpadding="0" cellspacing="0">
  46. <tr>
  47. <td width="8"><img alt="" height="5" width="8" src="images/spacer.gif"></td><td valign="bottom">
  48. <table summary="selected tab" style="height: 1.5em" border="0" cellpadding="0" cellspacing="0">
  49. <tr>
  50. <td valign="top" width="5" bgcolor="#4C6C8F"><img height="5" width="5" alt="" src="./images/tabSel-left.gif"></td><td valign="middle" bgcolor="#4C6C8F"><font color="#ffffff" size="2" face="Arial, Helvetica, Sans-serif"><b>Home</b></font></td><td valign="top" width="5" bgcolor="#4C6C8F"><img height="5" width="5" alt="" src="./images/tabSel-right.gif"></td>
  51. </tr>
  52. </table>
  53. </td>
  54. <td width="5"><img alt="" height="8" width="8" src="./images/spacer.gif"></td><td valign="bottom">
  55. <table summary="non selected tab" style="height: 1.4em" border="0" cellpadding="0" cellspacing="0">
  56. <tr>
  57. <td valign="top" width="5" bgcolor="#B2C4E0"><img height="5" width="5" alt="" src="./images/tab-left.gif"></td><td valign="middle" bgcolor="#B2C4E0"><a href="./projects/index.html"><font size="2" face="Arial, Helvetica, Sans-serif">Projects</font></a></td><td valign="top" width="5" bgcolor="#B2C4E0"><img height="5" width="5" alt="" src="./images/tab-right.gif"></td>
  58. </tr>
  59. </table>
  60. </td>
  61. </tr>
  62. </table>
  63. </div>
  64. </td><td bgcolor="#294563"><img alt="" width="1" height="1" src="./images/spacer.gif"></td>
  65. </tr>
  66. <tr>
  67. <td bgcolor="#4C6C8F" colspan="4"><img width="1" height="10" alt="" src="./images/spacer.gif"></td>
  68. </tr>
  69. </table>
  70. <table summary="page content" bgcolor="#ffffff" width="100%" border="0" cellpadding="0" cellspacing="0">
  71. <tr>
  72. <td valign="top">
  73. <table summary="menu" border="0" cellspacing="0" cellpadding="0">
  74. <tr>
  75. <td rowspan="3" valign="top">
  76. <table summary="blue line" border="0" cellpadding="0" cellspacing="0">
  77. <tr>
  78. <td bgcolor="#294563"><img width="10" height="1" alt="" src="./images/spacer.gif"></td>
  79. </tr>
  80. <tr>
  81. <td bgcolor="#CFDCED"><font color="#4C6C8F" size="4" face="Arial, Helvetica, Sans-serif">&nbsp;</font></td>
  82. </tr>
  83. <tr>
  84. <td bgcolor="#294563"><img width="10" height="1" alt="" src="./images/spacer.gif"></td>
  85. </tr>
  86. </table>
  87. </td><td bgcolor="#294563"><img width="1" height="1" alt="" src="./images/spacer.gif"></td><td valign="bottom" bgcolor="#4C6C8F"><img width="10" height="10" alt="" src="./images/spacer.gif"></td><td nowrap="nowrap" valign="top" bgcolor="#4C6C8F">
  88. <div class="menu"><ul>
  89. <li><font color="#CFDCED">Apache Ant</font>
  90. <ul>
  91. <li>
  92. <a href="./index.html">Welcome</a>
  93. </li>
  94. <li>
  95. <a href="./license.html">License</a>
  96. </li>
  97. <li>
  98. <a href="./antnews.html">News</a>
  99. </li>
  100. </ul>
  101. </li>
  102. <li><font color="#CFDCED">Documentation</font>
  103. <ul>
  104. <li>
  105. <a href="./manual/index.html">Manual</a>
  106. </li>
  107. <li>
  108. <a href="./projects.html">Related Projects</a>
  109. </li>
  110. <li>
  111. <a href="./external.html">External Tools and Tasks</a>
  112. </li>
  113. <li>
  114. <a href="./resources.html">Resources</a>
  115. </li>
  116. <li>
  117. <a href="./faq.html">Frequently Asked Questions</a>
  118. </li>
  119. <li>
  120. <span class="sel"><font color="#ffcc00">Having Problems?</font></span>
  121. </li>
  122. </ul>
  123. </li>
  124. <li><font color="#CFDCED">Download</font>
  125. <ul>
  126. <li>
  127. <a href="http://ant.apache.org/bindownload.cgi">Binary Distributions</a>
  128. </li>
  129. <li>
  130. <a href="http://ant.apache.org/srcdownload.cgi">Source Distributions</a>
  131. </li>
  132. </ul>
  133. </li>
  134. <li><font color="#CFDCED">Get Involved</font>
  135. <ul>
  136. <li>
  137. <a href="./mail.html">Mailing Lists</a>
  138. </li>
  139. <li>
  140. <a href="./cvs.html">CVS Repositories</a>
  141. </li>
  142. <li>
  143. <a href="http://issues.apache.org/bugzilla/enter_bug.cgi?product=Ant">Bug Database</a>
  144. </li>
  145. <li>
  146. <a href="http://issues.apache.org/bugzilla/enter_bug.cgi?product=Ant&amp;bug_severity=Enhancement">Enhancement Requests</a>
  147. </li>
  148. </ul>
  149. </li>
  150. <li><font color="#CFDCED">Project Management</font>
  151. <ul>
  152. <li>
  153. <a href="./contributors.html">Contributors</a>
  154. </li>
  155. <li>
  156. <a href="./mission.html">Apache Ant Mission</a>
  157. </li>
  158. <li>
  159. <a href="./guidelines.html">Project Guidelines</a>
  160. </li>
  161. <li>
  162. <a href="./legal.html">Legal</a>
  163. </li>
  164. </ul>
  165. </li>
  166. </ul></div>
  167. </td><td valign="bottom" bgcolor="#4C6C8F"><img width="10" height="10" alt="" src="./images/spacer.gif"></td><td bgcolor="#294563"><img width="1" height="1" alt="" src="./images/spacer.gif"></td>
  168. </tr>
  169. <tr>
  170. <td valign="bottom" align="left" colspan="2" rowspan="2" bgcolor="#4C6C8F"><img height="10" width="10" border="0" alt="" src="./images/menu-left.gif"></td><td bgcolor="#4C6C8F"><img height="10" width="10" border="0" alt="" src="./images/spacer.gif"></td><td valign="bottom" align="right" colspan="2" rowspan="2" bgcolor="#4C6C8F"><img height="10" width="10" border="0" alt="" src="./images/menu-right.gif"></td>
  171. </tr>
  172. <tr>
  173. <td height="1" bgcolor="#294563"><img width="1" height="1" alt="" src="./images/spacer.gif"></td>
  174. </tr>
  175. </table>
  176. </td><td valign="top" width="100%">
  177. <table summary="content" width="100%" border="0" cellpadding="0" cellspacing="0">
  178. <tr>
  179. <td colspan="4" bgcolor="#294563"><img width="10" height="1" alt="" src="./images/spacer.gif"></td>
  180. </tr>
  181. <tr>
  182. <td align="left" width="10" bgcolor="#CFDCED"><img width="10" height="1" alt="" src="./images/spacer.gif"></td><td align="left" width="50%" bgcolor="#CFDCED"><font color="#4C6C8F" size="3" face="Arial, Helvetica, Sans-serif">
  183. &nbsp;
  184. </font><img width="10" height="8" alt="" src="./images/spacer.gif"></td><td align="right" width="50%" bgcolor="#CFDCED"><font color="#4C6C8F" size="3" face="Arial, Helvetica, Sans-serif">
  185. &nbsp;
  186. </font><img width="10" height="8" alt="" src="./images/spacer.gif"></td><td width="10" bgcolor="#CFDCED"><img width="10" height="1" alt="" src="./images/spacer.gif"></td>
  187. </tr>
  188. <tr>
  189. <td colspan="4" bgcolor="#294563"><img width="10" height="1" alt="" src="./images/spacer.gif"></td>
  190. </tr>
  191. <tr>
  192. <td align="left" width="10"><img width="10" height="1" alt="" src="./images/spacer.gif"></td><td align="left" width="100%">
  193. <div class="content">
  194. <table class="title">
  195. <tr>
  196. <td valign="middle">
  197. <h1>Having Problems?</h1>
  198. </td>
  199. </tr>
  200. </table>
  201. <br/>
  202. <table class="nowrap" border="0" cellspacing="0" cellpadding="2" width="100%">
  203. <tr><td bgcolor="#294563"><font color="#ffffff"><a name="Having Problems?"><strong>Having Problems?</strong></a></font></td></tr>
  204. </table>
  205. <p>
  206. This page details some steps you can take to try and resolve
  207. any problems you may be having with Ant. If you find you can't
  208. resolve the problem, then this page will help you collect some of
  209. the relevant information to provide in a bug report. This information
  210. will help the Ant developers understand and resolve the problem.
  211. Of course, not all the steps here will make sense for every problem
  212. you may encounter - these are just some suggestions to point
  213. you in the right direction.
  214. </p>
  215. <br/>
  216. <a name="Read the Manual"></a>
  217. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  218. <tr><td bgcolor="#4C6C8F">
  219. <font color="#ffffff" face="arial,helvetica,sanserif">
  220. <strong>Read the Manual</strong>
  221. </font>
  222. </td></tr>
  223. </table>
  224. <p>
  225. The first step to take when you have a problem with Ant is to read
  226. the <a href="manual/index.html">manual</a> entry for the task or
  227. concept that is giving you trouble. In particular, check the
  228. meaning of a task's attributes and nested elements. Perhaps an
  229. attribute is available that would provide the behavior you require.
  230. If you have problems with the manual itself, you can submit a
  231. documentation bug report (see below) to help us improve the Ant
  232. documentation.
  233. </p>
  234. <br/>
  235. <a name="Examine Debug Output"></a>
  236. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  237. <tr><td bgcolor="#4C6C8F">
  238. <font color="#ffffff" face="arial,helvetica,sanserif">
  239. <strong>Examine Debug Output</strong>
  240. </font>
  241. </td></tr>
  242. </table>
  243. <p>
  244. If you're still having a problem, the next step is to try and
  245. gather additional information about what Ant is doing.
  246. Try running Ant with the <code>verbose</code> flag:
  247. <br /><br />
  248. <font face="verdana" size="-1">ant -verbose</font>
  249. <br /><br />
  250. or
  251. <br /><br />
  252. <font face="verdana" size="-1">ant -v</font>
  253. <br /><br />
  254. This will produce output that starts like the following:</p>
  255. <table class="ForrestTable" cellspacing="1" cellpadding="4">
  256. <tr>
  257. <td colspan="1" rowspan="1"
  258. valign="top" align="left">
  259. Ant version 1.4.1 compiled on October 11 2001<br />
  260. Buildfile: build.xml<br />
  261. Detected Java version: 1.3 in: D:\usr\local\java\jdk13\jre<br />
  262. Detected OS: Windows NT<br />
  263. parsing buildfile D:\ant\build.xml
  264. with URI = file:D:/ant/build.xml<br />
  265. Project base dir set to: D:\ant<br />
  266. ��[property] Loading Environment env.<br />
  267. ��[property] Loading D:\ant\conf.properties<br />
  268. Build sequence for target 'debug' is [debug]<br />
  269. Complete build sequence is [debug, gensrc, compile, jar, test]<br />
  270. . . .<br />
  271. </td>
  272. </tr>
  273. </table>
  274. <p>
  275. You should be able to see from the trace more about what Ant
  276. is doing and why it's taking a particular course of action.
  277. If you need even more information, you can use the
  278. <code>-debug</code> flag rather than
  279. <code>-verbose</code>.
  280. This will generally produce so much
  281. output that you may want to save the output to a file and
  282. analyze it in an editor. You can save the output using the
  283. <code>-logfile &lt;filename&gt;</code> flag, or
  284. using redirection.
  285. </p>
  286. <p>
  287. Once you have all this debug information, how can you use it
  288. to solve your problem? That will depend on the task in question
  289. and the nature of your problem. Each task logs different aspects
  290. of its operation, but it should give you an idea of what is going
  291. on. For example, the <code>&lt;javac&gt;</code> task logs the
  292. reasons why it
  293. chooses to compile particular class files and not others, along
  294. with which compiler it is using and the arguments it will pass
  295. to that compiler. The following partial trace shows why
  296. <code>&lt;javac&gt;</code> is adding one class file but
  297. skipping another.
  298. This is followed by which compiler it will be using, the
  299. arguments that will get passed to the compiler,
  300. and a list of all the class files to be compiled.
  301. </p>
  302. <table class="ForrestTable" cellspacing="1" cellpadding="4">
  303. <tr>
  304. <td colspan="1" rowspan="1"
  305. valign="top" align="left">
  306. [javac] Test.java omitted as D:\classes\Test.class is up to date.<br />
  307. [javac] Unset.java added as D:\classes\Unset.class is outdated.<br />
  308. [javac] Compiling 1 source file to D:\classes<br />
  309. [javac] Using classic compiler<br />
  310. [javac] Compilation args: -d D:\classes -classpath D:\classes;<br />
  311. D:\jdk118\classes.zip; -sourcepath D:\src\java -g:none<br />
  312. [javac] File to be compiled:<br />
  313. D:\src\java\Unset.java<br />
  314. </td>
  315. </tr>
  316. </table>
  317. <p>
  318. In many cases, Ant tasks are wrappers around OS commands or
  319. other Java classes. In debug mode, many of these tasks will
  320. print out the equivalent command line, as the
  321. <code>&lt;javac&gt;</code> task
  322. output does. If you are having a problem, it is often useful to
  323. run the command directly from the command line, in the same way
  324. Ant is running it, and see if the problem occurs from there
  325. as well. The problem may be in the command that is being run,
  326. or it may be in the way the Ant task is running the command.
  327. You can also see the effect of changing attribute values on the
  328. generated command line. This can help you to understand whether
  329. you are using the correct attributes and values.
  330. </p>
  331. <br/>
  332. <a name="Has It Been Fixed?"></a>
  333. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  334. <tr><td bgcolor="#4C6C8F">
  335. <font color="#ffffff" face="arial,helvetica,sanserif">
  336. <strong>Has It Been Fixed?</strong>
  337. </font>
  338. </td></tr>
  339. </table>
  340. <p>
  341. After examining the debug output, if you still believe that the
  342. problem you are having is caused by Ant, chances are that someone
  343. else may have already encountered this problem, and perhaps it has
  344. been fixed. The next step, therefore, may be to try a nightly build
  345. of Ant to see if the problem has been fixed. Nightly builds for Ant
  346. are available from the
  347. <a href="http://cvs.apache.org/builds/ant/nightly/">
  348. Ant web site</a>. While Ant nightly builds are typically quite
  349. stable and are used by
  350. <a href="http://cvs.apache.org/builds/gump/latest/">Gump</a>
  351. to build many other Jakarta projects, these builds should
  352. nonetheless be treated as experimental. Note that nightly builds
  353. do not build many of the optional tasks the come with Ant.
  354. A snapshot of these optional tasks is occasionally uploaded to
  355. the nightly download
  356. <a href="http://cvs.apache.org/builds/ant/nightly/optional/">
  357. area</a>. However, even this snapshot does not contain every
  358. optional task.
  359. </p>
  360. <br/>
  361. <a name="Has It Been Reported?"></a>
  362. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  363. <tr><td bgcolor="#4C6C8F">
  364. <font color="#ffffff" face="arial,helvetica,sanserif">
  365. <strong>Has It Been Reported?</strong>
  366. </font>
  367. </td></tr>
  368. </table>
  369. <p>
  370. If the current nightly build doesn't resolve your problem, it is
  371. possible that someone else has reported the issue. It is time to
  372. look at the <a href="http://issues.apache.org/bugzilla/">
  373. Apache Bug Database</a>. This system is easy to use, and it will
  374. let you search the <a href="http://issues.apache.org/bugzilla/buglist.cgi?bug_status=UNCONFIRMED&amp;bug_status=NEW&amp;bug_status=ASSIGNED&amp;bug_status=REOPENED&amp;email1=&amp;emailtype1=substring&amp;emailassigned_to1=1&amp;email2=&amp;emailtype2=substring&amp;emailreporter2=1&amp;bugidtype=include&amp;bug_id=&amp;changedin=&amp;votes=&amp;chfieldfrom=&amp;chfieldto=Now&amp;chfieldvalue=&amp;product=Ant&amp;short_desc=&amp;short_desc_type=substring&amp;long_desc=&amp;long_desc_type=substring&amp;bug_file_loc=&amp;bug_file_loc_type=substring&amp;keywords=&amp;keywords_type=anywords&amp;field0-0-0=noop&amp;type0-0-0=noop&amp;value0-0-0=&amp;order=bugs.bug_id">
  375. currently open</a> and resolved bugs to see if your problem has
  376. already been reported. If your problem has been reported, you can
  377. see whether any of the developers have commented, suggesting
  378. workarounds, or the reason for the bug, etc. Or you may have
  379. information to add (see about creating and modifying bug reports
  380. below), in which case, go right ahead and add the information.
  381. If you don't have any additional information, you may just want
  382. to vote for this bug, and perhaps
  383. add yourself to the <code>CC</code> list to follow the progress
  384. of this bug.
  385. </p>
  386. <br/>
  387. <a name="Filing a Bug Report"></a>
  388. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  389. <tr><td bgcolor="#4C6C8F">
  390. <font color="#ffffff" face="arial,helvetica,sanserif">
  391. <strong>Filing a Bug Report</strong>
  392. </font>
  393. </td></tr>
  394. </table>
  395. <p>
  396. By this time, you may have decided that there is an unreported
  397. bug in Ant. You have a few choices at this point. You can send
  398. an email to the <code>user</code> mailing list
  399. to see if
  400. others have encountered your issue and find out how they may
  401. have worked around it. If after some discussion, you feel it
  402. is time to create
  403. a bug report, this is a simple operation in the bug database.
  404. Please try to provide as much information as possible in order
  405. to assist the developers in resolving the bug. Please try to enter
  406. correct values for the various inputs when creating the bug, such
  407. as which version of Ant you are running, and on which platform,
  408. etc. Once the bug is created, you can also add attachments to
  409. the bug report.
  410. </p>
  411. <p>
  412. What information should you include in your bug report? The
  413. easiest bugs to fix are those that are most easily reproducible,
  414. so it is really helpful if you can produce a small test case that
  415. exhibits the problem. In this case, you would attach the build file
  416. and any other files necessary to reproduce the problem, probably
  417. packed together in an archive. If you can't produce a test case,
  418. you should try to include a snippet from your build file and the
  419. relevant sections from the verbose or debug output from Ant. Try
  420. to include the header information where Ant states the version,
  421. the OS and VM information, etc. As debug output is likely to be
  422. very large, it's best to remove any output that is not
  423. relevant. Once the bug is entered into the bug database, you
  424. will be kept informed by email about progress on the bug. If
  425. you receive email asking for further information, please try to
  426. respond, as it will aid in the resolution of your bug.
  427. </p>
  428. <br/>
  429. <a name="Asking for an Enhancement"></a>
  430. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  431. <tr><td bgcolor="#4C6C8F">
  432. <font color="#ffffff" face="arial,helvetica,sanserif">
  433. <strong>Asking for an Enhancement</strong>
  434. </font>
  435. </td></tr>
  436. </table>
  437. <p>
  438. Sometimes, you may find that Ant just doesn't do what you need it
  439. to. It isn't a bug, as such, since Ant is working the way it is
  440. supposed to work. Perhaps it is some additional functionality for
  441. a task that hasn't been thought of yet, or maybe a completely new
  442. task. For these situations, you will
  443. want to raise an <i>enhancement request</i>. Enhancement requests
  444. are managed using the same Apache Bug Database described above.
  445. These are just a different type of bug report. If you look in the
  446. bug database, you will see that one of the severity settings for
  447. a bug is "Enhancement". Just fill the bug report in,
  448. set the severity of the bug to "Enhancement", and
  449. state in the description how you would like to have Ant enhanced.
  450. Again, you should first check whether there are any existing
  451. enhancment requests that cover your needs. If so, just add your
  452. vote to these.
  453. </p>
  454. <br/>
  455. <a name="Fixing the Bug"></a>
  456. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  457. <tr><td bgcolor="#4C6C8F">
  458. <font color="#ffffff" face="arial,helvetica,sanserif">
  459. <strong>Fixing the Bug</strong>
  460. </font>
  461. </td></tr>
  462. </table>
  463. <p>
  464. If you aren't satisfied with just filing a bug report, you can
  465. try to find the cause of the problem and provide a fix yourself.
  466. The best way to do that is by working with the latest code from CVS.
  467. Alternatively, you can work with the source code available from the
  468. <a href="http://ant.apache.org/srcdownload.cgi">
  469. source distributions</a>. If you
  470. are going to tackle the problem at this level, you may want to
  471. discuss some details first on the <code>dev</code>
  472. mailing list. Once you have a fix for the problem, you may submit
  473. the fix as a <i>patch</i> to either the
  474. <code>dev</code> mailing
  475. list, or enter the bug database as described above and attach the
  476. patch to the bug report. Using the bug database has the advantage
  477. of being able to track the progress of your patch.
  478. </p>
  479. <p>
  480. If you have a patch to submit and are sending it to the
  481. <code>dev</code> mailing list,
  482. prefix "[PATCH]"
  483. to your message subject. Please include any relevant bug numbers.
  484. Patch files should be created with the <code>-u</code>
  485. option of the
  486. <code>diff</code> or <code>cvs diff</code> command. For
  487. example:<br /><br />
  488. <font face="verdana" size="-1">
  489. diff -u Javac.java.orig Javac.java &gt; javac.diffs<br /><br />
  490. </font>
  491. or, if you have source from CVS:<br /><br />
  492. <font face="verdana" size="-1">
  493. cvs diff -u Javac.java &gt; javac.diffs<br /><br />
  494. </font>
  495. Note: You should give your patch files meaningful names.
  496. This makes it easier for developers who need to apply a number
  497. of different patch files.
  498. </p>
  499. </div>
  500. </td><td width="10"><img width="10" height="4" alt="" src="./images/spacer.gif"></td>
  501. </tr>
  502. </table>
  503. </td>
  504. </tr>
  505. </table>
  506. <table summary="footer" cellspacing="0" cellpadding="0" width="100%" border="0">
  507. <tr>
  508. <td colspan="2" height="1" bgcolor="#4C6C8F"><img height="1" width="1" alt="" src="./images/spacer.gif"><a href="./images/label.gif"></a><a href="./images/page.gif"></a><a href="./images/chapter.gif"></a><a href="./images/chapter_open.gif"></a><a href="./images/current.gif"></a><a href="/favicon.ico"></a></td>
  509. </tr>
  510. <tr>
  511. <td colspan="2" bgcolor="#CFDCED" class="copyright" align="center"><font size="2" face="Arial, Helvetica, Sans-Serif">Copyright &copy; 2000-2003&nbsp;The Apache Software Foundation. All rights reserved.<script type="text/javascript" language="JavaScript"><!--
  512. document.write(" - "+"Last Published: " + document.lastModified);
  513. // --></script></font></td>
  514. </tr>
  515. </table>
  516. </body>
  517. </html>