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.

javadoc.html 23 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Language" content="en-us">
  4. <title>Javadoc Task</title>
  5. </head>
  6. <body>
  7. <h2><a name="javadoc">Javadoc/<i>Javadoc2</i></a></h2>
  8. <h3>Description</h3>
  9. <p>Generates code documentation using the javadoc tool.</p>
  10. <p>The source directory will be recursively scanned for Java source files to process
  11. but only those matching the inclusion rules, and not matching the exclusions rules
  12. will be passed to the javadoc tool. This
  13. allows wildcards to be used to choose between package names, reducing verbosity
  14. and management costs over time. This task, however, has no notion of
  15. &quot;changed&quot; files, unlike the <a href="javac.html">javac</a> task. This means
  16. all packages will be processed each time this task is run. In general, however,
  17. this task is used much less frequently.</p>
  18. <p>This task works seamlessly between different javadoc versions (1.1 and 1.2),
  19. with the obvious restriction that the 1.2 attributes will be ignored if run in a
  20. 1.1 VM.</p>
  21. <p>NOTE: since javadoc calls System.exit(), javadoc cannot be run inside the
  22. same VM as ant without breaking functionality. For this reason, this task
  23. always forks the VM. This overhead is not significant since javadoc is normally a heavy
  24. application and will be called infrequently.</p>
  25. <p>NOTE: the packagelist attribute allows you to specify the list of packages to
  26. document outside of the Ant file. It's a much better practice to include everything
  27. inside the build.xml file. This option was added in order to make it easier to
  28. migrate from regular makefiles, where you would use this option of javadoc.
  29. The packages listed in packagelist are not checked, so the task performs even
  30. if some packages are missing or broken. Use this option if you wish to convert from
  31. an existing makefile. Once things are running you should then switch to the regular
  32. notation. </p>
  33. <p><i><b>DEPRECATION:</b> the javadoc2 task simply points to the javadoc task and it's
  34. there for back compatibility reasons. Since this task will be removed in future
  35. versions, you are strongly encouraged to use <a href="javadoc.html">javadoc</a>
  36. instead.</i></p>
  37. <h3>Parameters</h3>
  38. <table border="1" cellpadding="2" cellspacing="0">
  39. <tr>
  40. <td valign="top"><b>Attribute</b></td>
  41. <td valign="top"><b>Description</b></td>
  42. <td align="center" valign="top"><b>Availability</b></td>
  43. <td align="center" valign="top"><b>Required</b></td>
  44. </tr>
  45. <tr>
  46. <td valign="top">sourcepath</td>
  47. <td valign="top">Specify where to find source files</td>
  48. <td align="center" valign="top">all</td>
  49. <td align="center" rowspan="2">At least one of the two or nested
  50. <code>&lt;sourcepath&gt;</code></td>
  51. </tr>
  52. <tr>
  53. <td valign="top">sourcepathref</td>
  54. <td valign="top">Specify where to find source files by <a
  55. href="../using.html#references">reference</a> to a PATH defined elsewhere.</td>
  56. <td align="center" valign="top">all</td>
  57. </tr>
  58. <tr>
  59. <td valign="top">destdir</td>
  60. <td valign="top">Destination directory for output files</td>
  61. <td align="center" valign="top">all</td>
  62. <td align="center" valign="top">Yes, unless a doclet has been specified.</td>
  63. </tr>
  64. <tr>
  65. <td valign="top">maxmemory</td>
  66. <td valign="top">Max amount of memory to allocate to the javadoc VM</td>
  67. <td align="center" valign="top">all</td>
  68. <td align="center" valign="top">No</td>
  69. </tr>
  70. <tr>
  71. <td valign="top">sourcefiles</td>
  72. <td valign="top">Comma separated list of source files</td>
  73. <td align="center" valign="top">all</td>
  74. <td align="center" valign="middle" rowspan="2">at least one of the two
  75. or nested <code>&lt;source&gt;</code> or <code>&lt;package&gt;</code></td>
  76. </tr>
  77. <tr>
  78. <td valign="top">packagenames</td>
  79. <td valign="top">Comma separated list of package files (with terminating
  80. wildcard)</td>
  81. <td align="center" valign="top">all</td>
  82. </tr>
  83. <tr>
  84. <td valign="top">packageList</td>
  85. <td valign="top">The name of a file containing the packages to process</td>
  86. <td align="center" valign="top">all</td>
  87. <td align="center" valign="top">No</td>
  88. </tr>
  89. <tr>
  90. <td valign="top">classpath</td>
  91. <td valign="top">Specify where to find user class files</td>
  92. <td align="center" valign="top">all</td>
  93. <td align="center" valign="top">No</td>
  94. </tr>
  95. <tr>
  96. <td valign="top">Bootclasspath</td>
  97. <td valign="top">Override location of class files loaded by the bootstrap
  98. class loader</td>
  99. <td align="center" valign="top">1.2</td>
  100. <td align="center" valign="top">No</td>
  101. </tr>
  102. <tr>
  103. <td valign="top">classpathref</td>
  104. <td valign="top">Specify where to find user class files by <a
  105. href="../using.html#references">reference</a> to a PATH defined elsewhere.</td>
  106. <td align="center" valign="top">all</td>
  107. <td align="center" valign="top">No</td>
  108. </tr>
  109. <tr>
  110. <td valign="top">bootclasspathref</td>
  111. <td valign="top">Override location of class files loaded by the
  112. bootstrap class loader by <a href="../using.html#references">reference</a> to a
  113. PATH defined elsewhere.</td>
  114. <td align="center" valign="top">1.2</td>
  115. <td align="center" valign="top">No</td>
  116. </tr>
  117. <tr>
  118. <td valign="top">Extdirs</td>
  119. <td valign="top">Override location of installed extensions</td>
  120. <td align="center" valign="top">1.2</td>
  121. <td align="center" valign="top">No</td>
  122. </tr>
  123. <tr>
  124. <td valign="top">Overview</td>
  125. <td valign="top">Read overview documentation from HTML file</td>
  126. <td align="center" valign="top">1.2</td>
  127. <td align="center" valign="top">No</td>
  128. </tr>
  129. <tr>
  130. <td valign="top">access</td>
  131. <td valign="top">Access mode: one of <code>public</code>, <code>protected</code>,
  132. <code>package</code>, or <code>private</code></td>
  133. <td align="center" valign="top">all</td>
  134. <td align="center" valign="top">No (default <code>protected</code>)</td>
  135. </tr>
  136. <tr>
  137. <td valign="top">Public</td>
  138. <td valign="top">Show only public classes and members</td>
  139. <td align="center" valign="top">all</td>
  140. <td align="center" valign="top">No</td>
  141. </tr>
  142. <tr>
  143. <td valign="top">Protected</td>
  144. <td valign="top">Show protected/public classes and members (default)</td>
  145. <td align="center" valign="top">all</td>
  146. <td align="center" valign="top">No</td>
  147. </tr>
  148. <tr>
  149. <td valign="top">Package</td>
  150. <td valign="top">Show package/protected/public classes and members</td>
  151. <td align="center" valign="top">all</td>
  152. <td align="center" valign="top">No</td>
  153. </tr>
  154. <tr>
  155. <td valign="top">Private</td>
  156. <td valign="top">Show all classes and members</td>
  157. <td align="center" valign="top">all</td>
  158. <td align="center" valign="top">No</td>
  159. </tr>
  160. <tr>
  161. <td valign="top">Old</td>
  162. <td valign="top">Generate output using JDK 1.1 emulating doclet</td>
  163. <td align="center" valign="top">1.2</td>
  164. <td align="center" valign="top">No</td>
  165. </tr>
  166. <tr>
  167. <td valign="top">Verbose</td>
  168. <td valign="top">Output messages about what Javadoc is doing</td>
  169. <td align="center" valign="top">1.2</td>
  170. <td align="center" valign="top">No</td>
  171. </tr>
  172. <tr>
  173. <td valign="top">Locale</td>
  174. <td valign="top">Locale to be used, e.g. en_US or en_US_WIN</td>
  175. <td align="center" valign="top">1.2</td>
  176. <td align="center" valign="top">No</td>
  177. </tr>
  178. <tr>
  179. <td valign="top">Encoding</td>
  180. <td valign="top">Source file encoding name</td>
  181. <td align="center" valign="top">all</td>
  182. <td align="center" valign="top">No</td>
  183. </tr>
  184. <tr>
  185. <td valign="top">Version</td>
  186. <td valign="top">Include @version paragraphs</td>
  187. <td align="center" valign="top">all</td>
  188. <td align="center" valign="top">No</td>
  189. </tr>
  190. <tr>
  191. <td valign="top">Use</td>
  192. <td valign="top">Create class and package usage pages</td>
  193. <td align="center" valign="top">1.2</td>
  194. <td align="center" valign="top">No</td>
  195. </tr>
  196. <tr>
  197. <td valign="top">Author</td>
  198. <td valign="top">Include @author paragraphs</td>
  199. <td align="center" valign="top">all</td>
  200. <td align="center" valign="top">No</td>
  201. </tr>
  202. <tr>
  203. <td valign="top">Splitindex</td>
  204. <td valign="top">Split index into one file per letter</td>
  205. <td align="center" valign="top">1.2</td>
  206. <td align="center" valign="top">No</td>
  207. </tr>
  208. <tr>
  209. <td valign="top">Windowtitle</td>
  210. <td valign="top">Browser window title for the documentation (text)</td>
  211. <td align="center" valign="top">1.2</td>
  212. <td align="center" valign="top">No</td>
  213. </tr>
  214. <tr>
  215. <td valign="top">Doctitle</td>
  216. <td valign="top">Include title for the package index(first) page (html-code)</td>
  217. <td align="center" valign="top">1.2</td>
  218. <td align="center" valign="top">No</td>
  219. </tr>
  220. <tr>
  221. <td valign="top">Header</td>
  222. <td valign="top">Include header text for each page (html-code)</td>
  223. <td align="center" valign="top">1.2</td>
  224. <td align="center" valign="top">No</td>
  225. </tr>
  226. <tr>
  227. <td valign="top">Footer</td>
  228. <td valign="top">Include footer text for each page (html-code)</td>
  229. <td align="center" valign="top">1.2</td>
  230. <td align="center" valign="top">No</td>
  231. </tr>
  232. <tr>
  233. <td valign="top">bottom</td>
  234. <td valign="top">Include bottom text for each page (html-code)</td>
  235. <td align="center" valign="top">1.2</td>
  236. <td align="center" valign="top">No</td>
  237. </tr>
  238. <tr>
  239. <td valign="top">link</td>
  240. <td valign="top">Create links to javadoc output at the given URL</td>
  241. <td align="center" valign="top">1.2</td>
  242. <td align="center" valign="top">No</td>
  243. </tr>
  244. <tr>
  245. <td valign="top">linkoffline</td>
  246. <td valign="top">Link to docs at &lt;url&gt; using package list at
  247. &lt;url2&gt; - separate the URLs by using a space character.</td>
  248. <td align="center" valign="top">1.2</td>
  249. <td align="center" valign="top">No</td>
  250. </tr>
  251. <tr>
  252. <td valign="top">group</td>
  253. <td valign="top">Group specified packages together in overview
  254. page. The format is as described <a href="#groupattribute">below</a>.</td>
  255. <td align="center" valign="top">1.2</td>
  256. <td align="center" valign="top">No</td>
  257. </tr>
  258. <tr>
  259. <td valign="top">nodeprecated</td>
  260. <td valign="top">Do not include @deprecated information</td>
  261. <td align="center" valign="top">all</td>
  262. <td align="center" valign="top">No</td>
  263. </tr>
  264. <tr>
  265. <td valign="top">nodeprecatedlist</td>
  266. <td valign="top">Do not generate deprecated list</td>
  267. <td align="center" valign="top">1.2</td>
  268. <td align="center" valign="top">No</td>
  269. </tr>
  270. <tr>
  271. <td valign="top">notree</td>
  272. <td valign="top">Do not generate class hierarchy</td>
  273. <td align="center" valign="top">all</td>
  274. <td align="center" valign="top">No</td>
  275. </tr>
  276. <tr>
  277. <td valign="top">noindex</td>
  278. <td valign="top">Do not generate index</td>
  279. <td align="center" valign="top">all</td>
  280. <td align="center" valign="top">No</td>
  281. </tr>
  282. <tr>
  283. <td valign="top">nohelp</td>
  284. <td valign="top">Do not generate help link</td>
  285. <td align="center" valign="top">1.2</td>
  286. <td align="center" valign="top">No</td>
  287. </tr>
  288. <tr>
  289. <td valign="top">nonavbar</td>
  290. <td valign="top">Do not generate navigation bar</td>
  291. <td align="center" valign="top">1.2</td>
  292. <td align="center" valign="top">No</td>
  293. </tr>
  294. <tr>
  295. <td valign="top">serialwarn</td>
  296. <td valign="top">FUTURE: Generate warning about @serial tag</td>
  297. <td align="center" valign="top">1.2</td>
  298. <td align="center" valign="top">No</td>
  299. </tr>
  300. <tr>
  301. <td valign="top">helpfile</td>
  302. <td valign="top">FUTURE: Specifies the HTML help file to use</td>
  303. <td align="center" valign="top">1.2</td>
  304. <td align="center" valign="top">No</td>
  305. </tr>
  306. <tr>
  307. <td valign="top">stylesheetfile</td>
  308. <td valign="top">Specifies the CSS stylesheet to use</td>
  309. <td align="center" valign="top">1.2</td>
  310. <td align="center" valign="top">No</td>
  311. </tr>
  312. <tr>
  313. <td valign="top">charset</td>
  314. <td valign="top">FUTURE: Charset for cross-platform viewing of generated
  315. documentation</td>
  316. <td align="center" valign="top">1.2</td>
  317. <td align="center" valign="top">No</td>
  318. </tr>
  319. <tr>
  320. <td valign="top">docencoding</td>
  321. <td valign="top">Output file encoding name</td>
  322. <td align="center" valign="top">1.1</td>
  323. <td align="center" valign="top">No</td>
  324. </tr>
  325. <tr>
  326. <td valign="top">doclet</td>
  327. <td valign="top">Specifies the class file that starts the doclet used in generating the documentation.</td>
  328. <td align="center" valign="top">1.2</td>
  329. <td align="center" valign="top">No</td>
  330. </tr>
  331. <tr>
  332. <td valign="top">docletpath</td>
  333. <td valign="top">Specifies the path to the doclet class file that is specified with the -doclet option.</td>
  334. <td align="center" valign="top">1.2</td>
  335. <td align="center" valign="top">No</td>
  336. </tr>
  337. <tr>
  338. <td valign="top">docletpathref</td>
  339. <td valign="top">Specifies the path to the doclet class file that
  340. is specified with the -doclet option by <a
  341. href="../using.html#references">reference</a> to a PATH defined elsewhere.</td>
  342. <td align="center" valign="top">1.2</td>
  343. <td align="center" valign="top">No</td>
  344. </tr>
  345. <tr>
  346. <td valign="top">tag</td>
  347. <td valign="top">Specifies how custom tags should be handled. See
  348. <a href="#tagelement">below</a> for details.</td>
  349. <td align="center" valign="top">1.4</td>
  350. <td align="center" valign="top">No</td>
  351. </tr>
  352. <tr>
  353. <td valign="top">additionalparam</td>
  354. <td valign="top">Lets you add additional parameters to the javadoc
  355. command line. Useful for doclets. Parameters containing
  356. spaces need to be quoted using &amp;quot;.</td>
  357. <td align="center" valign="top">1.2</td>
  358. <td align="center" valign="top">No</td>
  359. </tr>
  360. <tr>
  361. <td valign="top">failonerror</td>
  362. <td valign="top">Stop the buildprocess if the command exits with a
  363. returncode other than 0.</td>
  364. <td align="center" valign="top">all</td>
  365. <td align="center" valign="top">No</td>
  366. </tr>
  367. <tr>
  368. <td valign="top">excludepackagenames</td>
  369. <td valign="top">comma separated list of packages you don't want
  370. docs for.</td>
  371. <td align="center" valign="top">all</td>
  372. <td valign="top" align="center">No</td>
  373. </tr>
  374. <tr>
  375. <td valign="top">defaultexcludes</td>
  376. <td valign="top">indicates whether default excludes should be used
  377. (<code>yes</code> | <code>no</code>); default excludes are used when omitted.</td>
  378. <td align="center" valign="top">all</td>
  379. <td valign="top" align="center">No</td>
  380. </tr>
  381. <tr>
  382. <td valign="top">useexternalfile</td>
  383. <td valign="top">indicates whether the sourcefile name specified
  384. in srcfiles or as nested source elements should be written to a
  385. temporary file to make the command line shorter. Also applies to
  386. the package names specified via the packagenames attribute or
  387. nested package elements.
  388. (<code>yes</code> | <code>no</code>). Default is no.</td>
  389. <td align="center" valign="top">all</td>
  390. <td valign="top" align="center">No</td>
  391. </tr>
  392. </table>
  393. <h4><a name="groupattribute">Format of the group attribute</a></h4>
  394. <p>The arguments are comma-delimited. Each single argument is 2
  395. space-delimited strings, where the first one is the group's title and
  396. the second one a colon delimited list of packages.</p>
  397. <p>If you need to specify more than one group, or a group whose title
  398. contains a comma or a space character, using <a
  399. href="#groupelement">nested group elements</a> is highly
  400. recommended.</p>
  401. <p>E.g., </p>
  402. <pre> group=&quot;XSLT_Packages org.apache.xalan.xslt*,XPath_Packages org.apache.xalan.xpath*&quot;
  403. </pre>
  404. <h3>Parameters specified as nested elements</h3>
  405. <h4>package</h4>
  406. <p>Same as one entry in the list given by <code>packagenames</code>.</p>
  407. <h5>Parameters</h5>
  408. <table width="60%" border="1" cellpadding="2" cellspacing="0">
  409. <tr>
  410. <td valign="top"><b>Attribute</b></td>
  411. <td valign="top"><b>Description</b></td>
  412. <td align="center" valign="top"><b>Required</b></td>
  413. </tr>
  414. <tr>
  415. <td valign="top">name</td>
  416. <td valign="top">The package name (may be a wildcard)</td>
  417. <td align="center" valign="top">Yes</td>
  418. </tr>
  419. </table>
  420. <h4>excludepackage</h4>
  421. <p>Same as one entry in the list given by <code>excludepackagenames</code>.</p>
  422. <h5>Parameters</h5>
  423. Same as for <code>package</code>.
  424. <h4>source</h4>
  425. <p>Same as one entry in the list given by <code>sourcefiles</code>.</p>
  426. <h5>Parameters</h5>
  427. <table width="60%" border="1" cellpadding="2" cellspacing="0">
  428. <tr>
  429. <td valign="top"><b>Attribute</b></td>
  430. <td valign="top"><b>Description</b></td>
  431. <td align="center" valign="top"><b>Required</b></td>
  432. </tr>
  433. <tr>
  434. <td valign="top">file</td>
  435. <td valign="top">The source file to document</td>
  436. <td align="center" valign="top">Yes</td>
  437. </tr>
  438. </table>
  439. <h4>doctitle</h4>
  440. <p>Same as the <code>doctitle</code> attribute, but you can nest text
  441. inside the element this way.</p>
  442. <h4>header</h4>
  443. <p>Similar to <code>&lt;doctitle&gt;</code>.</p>
  444. <h4>footer</h4>
  445. <p>Similar to <code>&lt;doctitle&gt;</code>.</p>
  446. <h4>bottom</h4>
  447. <p>Similar to <code>&lt;doctitle&gt;</code>.</p>
  448. <h4>link</h4>
  449. <p>Create link to javadoc output at the given URL. This performs the
  450. same role as the link and linkoffline attributes. You can use either
  451. syntax (or both at once), but with the nested elements you can easily
  452. specify multiple occurrences of the arguments.</p>
  453. <h5>Parameters</h5>
  454. <table width="60%" border="1" cellpadding="2" cellspacing="0">
  455. <tr>
  456. <td valign="top"><b>Attribute</b></td>
  457. <td valign="top"><b>Description</b></td>
  458. <td align="center" valign="top"><b>Required</b></td>
  459. </tr>
  460. <tr>
  461. <td valign="top">href</td>
  462. <td valign="top">The URL for the external documentation you wish to link to</td>
  463. <td align="center" valign="top">Yes</td>
  464. </tr>
  465. <tr>
  466. <td valign="top">offline</td>
  467. <td valign="top">True if this link is not available online at the time of
  468. generating the documentation</td>
  469. <td align="center" valign="top">No</td>
  470. </tr>
  471. <tr>
  472. <td valign="top">packagelistLoc</td>
  473. <td valign="top">The location to the directory containing the package-list file for
  474. the external documentation</td>
  475. <td align="center" valign="top">Only if the offline attribute is true</td>
  476. </tr>
  477. </table>
  478. <h4><a name="groupelement">group</a></h4>
  479. <p>Separates packages on the overview page into whatever groups you
  480. specify, one group per table. This performs the same role as the group
  481. attribute. You can use either syntax (or both at once), but with the
  482. nested elements you can easily specify multiple occurrences of the
  483. arguments.</p>
  484. <h5>Parameters</h5>
  485. <table width="60%" border="1" cellpadding="2" cellspacing="0">
  486. <tr>
  487. <td valign="top"><b>Attribute</b></td>
  488. <td valign="top"><b>Description</b></td>
  489. <td align="center" valign="top"><b>Required</b></td>
  490. </tr>
  491. <tr>
  492. <td valign="top">title</td>
  493. <td valign="top">Title of the group</td>
  494. <td align="center" valign="top">Yes, unless nested <code>&lt;title&gt;</code> given</td>
  495. </tr>
  496. <tr>
  497. <td valign="top">packages</td>
  498. <td valign="top">List of packages to include in that group. Multiple packages are separated with ':'.</td>
  499. <td align="center" valign="top">Yes, unless nested <code>&lt;package&gt;</code>s given</td>
  500. </tr>
  501. </table>
  502. <p>The title may be specified as a nested <code>&lt;title&gt;</code> element
  503. with text contents, and the packages may be listed with nested
  504. <code>&lt;package&gt;</code> elements as for the main task.</p>
  505. <h4>doclet</h4>
  506. <p>The doclet nested element is used to specify the doclet that javadoc will
  507. use to process the input source files. A number of the standard javadoc arguments
  508. are actually arguments of the standard doclet. If these are specified in the javadoc
  509. task's attributes, they will be passed to the doclet specified in the
  510. <code>&lt;doclet&gt;</code> nested element. Such attributes should only be specified,
  511. therefore, if they can be interpreted by the doclet in use.</p>
  512. <p>If the doclet requires additional parameters, these can be specified with
  513. <code>&lt;param&gt;</code> elements within the <code>&lt;doclet&gt;</code>
  514. element. These paramaters are restricted to simple strings. An example usage
  515. of the doclet element is shown below:</p>
  516. <pre> &lt;javadoc ...&gt;
  517. &lt;doclet name=&quot;theDoclet&quot;
  518. path=&quot;path/to/theDoclet&quot;&gt;
  519. &lt;param name=&quot;-foo&quot; value=&quot;foovalue&quot;/&gt;
  520. &lt;param name=&quot;-bar&quot; value=&quot;barvalue&quot;/&gt;
  521. &lt;/doclet&gt;
  522. &lt;/javadoc&gt;
  523. </pre>
  524. <h4><a name="tagelement">tag</a></h4>
  525. <p>The tag nested element is used to specify custom tags. This option is only available
  526. with Java 1.4.</p>
  527. <h5>Parameters</h5>
  528. <table width="60%" border="1" cellpadding="2" cellspacing="0">
  529. <tr>
  530. <td valign="top"><b>Attribute</b></td>
  531. <td valign="top"><b>Description</b></td>
  532. <td align="center" valign="top"><b>Required</b></td>
  533. </tr>
  534. <tr>
  535. <td valign="top">name</td>
  536. <td valign="top">Name of the tag (e.g. <code>todo</code>)</td>
  537. <td align="center" valign="top">Yes</td>
  538. </tr>
  539. <tr>
  540. <td valign="top">description</td>
  541. <td valign="top">Description for tag (e.g. <code>To do:</code>)</td>
  542. <td align="center" valign="top">Yes</td>
  543. </tr>
  544. <tr>
  545. <td valign="top">enabled</td>
  546. <td valign="top">Whether or not the tag is enabled (defaults to <code>true</code>)</td>
  547. <td align="center" valign="top">No</td>
  548. </tr>
  549. <tr>
  550. <td valign="top">scope</td>
  551. <td valign="top">Scope for the tag - the elements in which it can be used. This
  552. is a comma separated list of some of the elements: <code>overview</code>,
  553. <code>packages</code>, <code>types</code>, <code>constructors</code>,
  554. <code>methods</code>, <code>fields</code> or the default, <code>all</code>.</td>
  555. <td align="center" valign="top">No</td>
  556. </tr>
  557. </table>
  558. <h4>sourcepath, classpath and bootclasspath</h4>
  559. <p><code>Javadoc</code>'s <i>sourcepath</i>, <i>classpath</i> and
  560. <i>bootclasspath</i> attributes are <a href="../using.html#path">PATH like
  561. structure</a> and can also be set via nested <i>sourcepath</i>,
  562. <i>classpath</i> and <i>bootclasspath</i> elements
  563. respectively.</p>
  564. <h3>Example</h3>
  565. <pre> &lt;javadoc packagenames=&quot;com.dummy.test.*&quot;
  566. sourcepath=&quot;src&quot;
  567. excludepackagenames=&quot;com.dummy.test.doc-files.*&quot;
  568. defaultexcludes=&quot;yes&quot;
  569. destdir=&quot;docs/api&quot;
  570. author=&quot;true&quot;
  571. version=&quot;true&quot;
  572. use=&quot;true&quot;
  573. windowtitle=&quot;Test API&quot;&gt;
  574. &lt;doctitle&gt;&lt;![CDATA[&lt;h1&gt;Test&lt;/h1&gt;]]&gt;&lt;/doctitle&gt;
  575. &lt;bottom&gt;&lt;![CDATA[&lt;i&gt;Copyright &amp;#169; 2000 Dummy Corp. All Rights Reserved.&lt;/i&gt;]]&gt;&lt;/bottom&gt;
  576. &lt;tag name=&quot;todo&quot; scope=&quot;all&quot; description=&quot;To do:&quot; /&gt;
  577. &lt;group title=&quot;Group 1 Packages&quot; packages=&quot;com.dummy.test.a*&quot;/&gt;
  578. &lt;group title=&quot;Group 2 Packages&quot; packages=&quot;com.dummy.test.b*:com.dummy.test.c*&quot;/&gt;
  579. &lt;link offline=&quot;true&quot; href=&quot;http://java.sun.com/products/jdk/1.2/docs/api/&quot; packagelistLoc=&quot;C:\tmp&quot;/&gt;
  580. &lt;link href=&quot;http://developer.java.sun.com/developer/products/xml/docs/api/&quot;/&gt;
  581. &lt/javadoc&gt;</pre>
  582. <hr>
  583. <p align="center">Copyright &copy; 2001-2002 Apache Software Foundation. All rights
  584. Reserved.</p>
  585. </body>
  586. </html>