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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748
  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,
  19. 1.2 and 1.4), with the obvious restriction that the 1.2 attributes
  20. will be ignored if run in a 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. <p>In the table below, 1.1 means available if your current Java VM is
  38. a 1.1 VM, 1.2 for either 1.2 or 1.3 and 1.4 for a 1.4 Java VM. 1.2+
  39. means any VM of at least version 1.2.</p>
  40. <h3>Parameters</h3>
  41. <table border="1" cellpadding="2" cellspacing="0">
  42. <tr>
  43. <td valign="top"><b>Attribute</b></td>
  44. <td valign="top"><b>Description</b></td>
  45. <td align="center" valign="top"><b>Availability</b></td>
  46. <td align="center" valign="top"><b>Required</b></td>
  47. </tr>
  48. <tr>
  49. <td valign="top">sourcepath</td>
  50. <td valign="top">Specify where to find source files</td>
  51. <td align="center" valign="top">all</td>
  52. <td align="center" rowspan="3">At least one of the three or nested
  53. <code>&lt;sourcepath&gt;</code>, <code>&lt;fileset&gt;</code> or
  54. <code>&lt;packageset&gt;</code></td>
  55. </tr>
  56. <tr>
  57. <td valign="top">sourcepathref</td>
  58. <td valign="top">Specify where to find source files by <a
  59. href="../using.html#references">reference</a> to a PATH defined elsewhere.</td>
  60. <td align="center" valign="top">all</td>
  61. </tr>
  62. <tr>
  63. <td valign="top">sourcefiles</td>
  64. <td valign="top">Comma separated list of source files</td>
  65. <td align="center" valign="top">all</td>
  66. </tr>
  67. <tr>
  68. <td valign="top">destdir</td>
  69. <td valign="top">Destination directory for output files</td>
  70. <td align="center" valign="top">all</td>
  71. <td align="center" valign="top">Yes, unless a doclet has been specified.</td>
  72. </tr>
  73. <tr>
  74. <td valign="top">maxmemory</td>
  75. <td valign="top">Max amount of memory to allocate to the javadoc VM</td>
  76. <td align="center" valign="top">all</td>
  77. <td align="center" valign="top">No</td>
  78. </tr>
  79. <tr>
  80. <td valign="top">packagenames</td>
  81. <td valign="top">Comma separated list of package files (with terminating
  82. wildcard)</td>
  83. <td align="center" valign="top">all</td>
  84. <td align="center" valign="top">No</td>
  85. </tr>
  86. <tr>
  87. <td valign="top">packageList</td>
  88. <td valign="top">The name of a file containing the packages to process</td>
  89. <td align="center" valign="top">1.2+</td>
  90. <td align="center" valign="top">No</td>
  91. </tr>
  92. <tr>
  93. <td valign="top">classpath</td>
  94. <td valign="top">Specify where to find user class files</td>
  95. <td align="center" valign="top">all</td>
  96. <td align="center" valign="top">No</td>
  97. </tr>
  98. <tr>
  99. <td valign="top">Bootclasspath</td>
  100. <td valign="top">Override location of class files loaded by the bootstrap
  101. class loader</td>
  102. <td align="center" valign="top">1.2+</td>
  103. <td align="center" valign="top">No</td>
  104. </tr>
  105. <tr>
  106. <td valign="top">classpathref</td>
  107. <td valign="top">Specify where to find user class files by <a
  108. href="../using.html#references">reference</a> to a PATH defined elsewhere.</td>
  109. <td align="center" valign="top">all</td>
  110. <td align="center" valign="top">No</td>
  111. </tr>
  112. <tr>
  113. <td valign="top">bootclasspathref</td>
  114. <td valign="top">Override location of class files loaded by the
  115. bootstrap class loader by <a href="../using.html#references">reference</a> to a
  116. PATH defined elsewhere.</td>
  117. <td align="center" valign="top">1.2+</td>
  118. <td align="center" valign="top">No</td>
  119. </tr>
  120. <tr>
  121. <td valign="top">Extdirs</td>
  122. <td valign="top">Override location of installed extensions</td>
  123. <td align="center" valign="top">1.2+</td>
  124. <td align="center" valign="top">No</td>
  125. </tr>
  126. <tr>
  127. <td valign="top">Overview</td>
  128. <td valign="top">Read overview documentation from HTML file</td>
  129. <td align="center" valign="top">1.2+</td>
  130. <td align="center" valign="top">No</td>
  131. </tr>
  132. <tr>
  133. <td valign="top">access</td>
  134. <td valign="top">Access mode: one of <code>public</code>, <code>protected</code>,
  135. <code>package</code>, or <code>private</code></td>
  136. <td align="center" valign="top">all</td>
  137. <td align="center" valign="top">No (default <code>protected</code>)</td>
  138. </tr>
  139. <tr>
  140. <td valign="top">Public</td>
  141. <td valign="top">Show only public classes and members</td>
  142. <td align="center" valign="top">all</td>
  143. <td align="center" valign="top">No</td>
  144. </tr>
  145. <tr>
  146. <td valign="top">Protected</td>
  147. <td valign="top">Show protected/public classes and members (default)</td>
  148. <td align="center" valign="top">all</td>
  149. <td align="center" valign="top">No</td>
  150. </tr>
  151. <tr>
  152. <td valign="top">Package</td>
  153. <td valign="top">Show package/protected/public classes and members</td>
  154. <td align="center" valign="top">all</td>
  155. <td align="center" valign="top">No</td>
  156. </tr>
  157. <tr>
  158. <td valign="top">Private</td>
  159. <td valign="top">Show all classes and members</td>
  160. <td align="center" valign="top">all</td>
  161. <td align="center" valign="top">No</td>
  162. </tr>
  163. <tr>
  164. <td valign="top">Old</td>
  165. <td valign="top">Generate output using JDK 1.1 emulating doclet</td>
  166. <td align="center" valign="top">1.2</td>
  167. <td align="center" valign="top">No</td>
  168. </tr>
  169. <tr>
  170. <td valign="top">Verbose</td>
  171. <td valign="top">Output messages about what Javadoc is doing</td>
  172. <td align="center" valign="top">1.2+</td>
  173. <td align="center" valign="top">No</td>
  174. </tr>
  175. <tr>
  176. <td valign="top">Locale</td>
  177. <td valign="top">Locale to be used, e.g. en_US or en_US_WIN</td>
  178. <td align="center" valign="top">1.2+</td>
  179. <td align="center" valign="top">No</td>
  180. </tr>
  181. <tr>
  182. <td valign="top">Encoding</td>
  183. <td valign="top">Source file encoding name</td>
  184. <td align="center" valign="top">all</td>
  185. <td align="center" valign="top">No</td>
  186. </tr>
  187. <tr>
  188. <td valign="top">Version</td>
  189. <td valign="top">Include @version paragraphs</td>
  190. <td align="center" valign="top">all</td>
  191. <td align="center" valign="top">No</td>
  192. </tr>
  193. <tr>
  194. <td valign="top">Use</td>
  195. <td valign="top">Create class and package usage pages</td>
  196. <td align="center" valign="top">1.2+</td>
  197. <td align="center" valign="top">No</td>
  198. </tr>
  199. <tr>
  200. <td valign="top">Author</td>
  201. <td valign="top">Include @author paragraphs</td>
  202. <td align="center" valign="top">all</td>
  203. <td align="center" valign="top">No</td>
  204. </tr>
  205. <tr>
  206. <td valign="top">Splitindex</td>
  207. <td valign="top">Split index into one file per letter</td>
  208. <td align="center" valign="top">1.2+</td>
  209. <td align="center" valign="top">No</td>
  210. </tr>
  211. <tr>
  212. <td valign="top">Windowtitle</td>
  213. <td valign="top">Browser window title for the documentation (text)</td>
  214. <td align="center" valign="top">1.2+</td>
  215. <td align="center" valign="top">No</td>
  216. </tr>
  217. <tr>
  218. <td valign="top">Doctitle</td>
  219. <td valign="top">Include title for the package index(first) page (html-code)</td>
  220. <td align="center" valign="top">1.2+</td>
  221. <td align="center" valign="top">No</td>
  222. </tr>
  223. <tr>
  224. <td valign="top">Header</td>
  225. <td valign="top">Include header text for each page (html-code)</td>
  226. <td align="center" valign="top">1.2+</td>
  227. <td align="center" valign="top">No</td>
  228. </tr>
  229. <tr>
  230. <td valign="top">Footer</td>
  231. <td valign="top">Include footer text for each page (html-code)</td>
  232. <td align="center" valign="top">1.2+</td>
  233. <td align="center" valign="top">No</td>
  234. </tr>
  235. <tr>
  236. <td valign="top">bottom</td>
  237. <td valign="top">Include bottom text for each page (html-code)</td>
  238. <td align="center" valign="top">1.2+</td>
  239. <td align="center" valign="top">No</td>
  240. </tr>
  241. <tr>
  242. <td valign="top">link</td>
  243. <td valign="top">Create links to javadoc output at the given URL</td>
  244. <td align="center" valign="top">1.2+</td>
  245. <td align="center" valign="top">No</td>
  246. </tr>
  247. <tr>
  248. <td valign="top">linkoffline</td>
  249. <td valign="top">Link to docs at &lt;url&gt; using package list at
  250. &lt;url2&gt; - separate the URLs by using a space character.</td>
  251. <td align="center" valign="top">1.2+</td>
  252. <td align="center" valign="top">No</td>
  253. </tr>
  254. <tr>
  255. <td valign="top">group</td>
  256. <td valign="top">Group specified packages together in overview
  257. page. The format is as described <a href="#groupattribute">below</a>.</td>
  258. <td align="center" valign="top">1.2+</td>
  259. <td align="center" valign="top">No</td>
  260. </tr>
  261. <tr>
  262. <td valign="top">nodeprecated</td>
  263. <td valign="top">Do not include @deprecated information</td>
  264. <td align="center" valign="top">all</td>
  265. <td align="center" valign="top">No</td>
  266. </tr>
  267. <tr>
  268. <td valign="top">nodeprecatedlist</td>
  269. <td valign="top">Do not generate deprecated list</td>
  270. <td align="center" valign="top">1.2+</td>
  271. <td align="center" valign="top">No</td>
  272. </tr>
  273. <tr>
  274. <td valign="top">notree</td>
  275. <td valign="top">Do not generate class hierarchy</td>
  276. <td align="center" valign="top">all</td>
  277. <td align="center" valign="top">No</td>
  278. </tr>
  279. <tr>
  280. <td valign="top">noindex</td>
  281. <td valign="top">Do not generate index</td>
  282. <td align="center" valign="top">all</td>
  283. <td align="center" valign="top">No</td>
  284. </tr>
  285. <tr>
  286. <td valign="top">nohelp</td>
  287. <td valign="top">Do not generate help link</td>
  288. <td align="center" valign="top">1.2+</td>
  289. <td align="center" valign="top">No</td>
  290. </tr>
  291. <tr>
  292. <td valign="top">nonavbar</td>
  293. <td valign="top">Do not generate navigation bar</td>
  294. <td align="center" valign="top">1.2+</td>
  295. <td align="center" valign="top">No</td>
  296. </tr>
  297. <tr>
  298. <td valign="top">serialwarn</td>
  299. <td valign="top">Generate warning about @serial tag</td>
  300. <td align="center" valign="top">1.2+</td>
  301. <td align="center" valign="top">No</td>
  302. </tr>
  303. <tr>
  304. <td valign="top">helpfile</td>
  305. <td valign="top">Specifies the HTML help file to use</td>
  306. <td align="center" valign="top">1.2+</td>
  307. <td align="center" valign="top">No</td>
  308. </tr>
  309. <tr>
  310. <td valign="top">stylesheetfile</td>
  311. <td valign="top">Specifies the CSS stylesheet to use</td>
  312. <td align="center" valign="top">1.2+</td>
  313. <td align="center" valign="top">No</td>
  314. </tr>
  315. <tr>
  316. <td valign="top">charset</td>
  317. <td valign="top">Charset for cross-platform viewing of generated
  318. documentation</td>
  319. <td align="center" valign="top">1.2+</td>
  320. <td align="center" valign="top">No</td>
  321. </tr>
  322. <tr>
  323. <td valign="top">docencoding</td>
  324. <td valign="top">Output file encoding name</td>
  325. <td align="center" valign="top">all</td>
  326. <td align="center" valign="top">No</td>
  327. </tr>
  328. <tr>
  329. <td valign="top">doclet</td>
  330. <td valign="top">Specifies the class file that starts the doclet used in generating the documentation.</td>
  331. <td align="center" valign="top">1.2+</td>
  332. <td align="center" valign="top">No</td>
  333. </tr>
  334. <tr>
  335. <td valign="top">docletpath</td>
  336. <td valign="top">Specifies the path to the doclet class file that is specified with the -doclet option.</td>
  337. <td align="center" valign="top">1.2+</td>
  338. <td align="center" valign="top">No</td>
  339. </tr>
  340. <tr>
  341. <td valign="top">docletpathref</td>
  342. <td valign="top">Specifies the path to the doclet class file that
  343. is specified with the -doclet option by <a
  344. href="../using.html#references">reference</a> to a PATH defined elsewhere.</td>
  345. <td align="center" valign="top">1.2+</td>
  346. <td align="center" valign="top">No</td>
  347. </tr>
  348. <tr>
  349. <td valign="top">additionalparam</td>
  350. <td valign="top">Lets you add additional parameters to the javadoc
  351. command line. Useful for doclets. Parameters containing
  352. spaces need to be quoted using &amp;quot;.</td>
  353. <td align="center" valign="top">all</td>
  354. <td align="center" valign="top">No</td>
  355. </tr>
  356. <tr>
  357. <td valign="top">failonerror</td>
  358. <td valign="top">Stop the buildprocess if the command exits with a
  359. returncode other than 0.</td>
  360. <td align="center" valign="top">all</td>
  361. <td align="center" valign="top">No</td>
  362. </tr>
  363. <tr>
  364. <td valign="top">excludepackagenames</td>
  365. <td valign="top">comma separated list of packages you don't want
  366. docs for.</td>
  367. <td align="center" valign="top">all</td>
  368. <td valign="top" align="center">No</td>
  369. </tr>
  370. <tr>
  371. <td valign="top">defaultexcludes</td>
  372. <td valign="top">indicates whether default excludes should be used
  373. (<code>yes</code> | <code>no</code>); default excludes are used when omitted.</td>
  374. <td align="center" valign="top">all</td>
  375. <td valign="top" align="center">No</td>
  376. </tr>
  377. <tr>
  378. <td valign="top">useexternalfile</td>
  379. <td valign="top">indicates whether the sourcefile name specified
  380. in srcfiles or as nested source elements should be written to a
  381. temporary file to make the command line shorter. Also applies to
  382. the package names specified via the packagenames attribute or
  383. nested package elements.
  384. (<code>yes</code> | <code>no</code>). Default is no.</td>
  385. <td align="center" valign="top">1.2+</td>
  386. <td valign="top" align="center">No</td>
  387. </tr>
  388. <tr>
  389. <td valign="top">source</td>
  390. <td valign="top">Necessary to enable javadoc to handle assertions
  391. present in J2SE v 1.4 source code. Set this to &quot;1.4&quot; to
  392. documents code that compiles using <code>&quot;javac -source
  393. 1.4&quot;</code>.</td>
  394. <td align="center" valign="top">1.4</td>
  395. <td align="center" valign="top">No</td>
  396. </tr>
  397. </table>
  398. <h4><a name="groupattribute">Format of the group attribute</a></h4>
  399. <p>The arguments are comma-delimited. Each single argument is 2
  400. space-delimited strings, where the first one is the group's title and
  401. the second one a colon delimited list of packages.</p>
  402. <p>If you need to specify more than one group, or a group whose title
  403. contains a comma or a space character, using <a
  404. href="#groupelement">nested group elements</a> is highly
  405. recommended.</p>
  406. <p>E.g., </p>
  407. <pre> group=&quot;XSLT_Packages org.apache.xalan.xslt*,XPath_Packages org.apache.xalan.xpath*&quot;
  408. </pre>
  409. <h3>Parameters specified as nested elements</h3>
  410. <h4>packageset</h4>
  411. <p>A <a href="../CoreTypes/dirset.html">DirSet</a>. All matched
  412. directories that contain Java source files will be passed to javadoc
  413. as package names. Package names are created from the directory names
  414. by translating the directory separator into dots. Ant assumes the
  415. base directory of the packageset points to the root of a package
  416. hierarchy.</p>
  417. <p>The <code>packagenames</code>, <code>excludepackagenames</code> and
  418. <code>defaultexcludes</code> attributes of the task have no effect on
  419. the nested <code>&lt;packageset&gt;</code> elements.</p>
  420. <h4>fileset</h4>
  421. <p>A <a href="../CoreTypes/fileset.html">FileSet</a>. All matched
  422. files will be passed to javadoc as source files. Ant will
  423. automatically add the include pattern <code>**/*.java</code> to these
  424. filesets.</p>
  425. <p>Nested filesets can be used to document sources that are in the
  426. default package or if you want to exclude certain files from
  427. documentation. If you want to document all source files and don't use
  428. the default package, packagesets should be used instead as this
  429. increases javadocs performance.</p>
  430. <p>The <code>packagenames</code>, <code>excludepackagenames</code> and
  431. <code>defaultexcludes</code> attributes of the task have no effect on
  432. the nested <code>&lt;fileset&gt;</code> elements.</p>
  433. <h4>package</h4>
  434. <p>Same as one entry in the list given by <code>packagenames</code>.</p>
  435. <h5>Parameters</h5>
  436. <table width="60%" border="1" cellpadding="2" cellspacing="0">
  437. <tr>
  438. <td valign="top"><b>Attribute</b></td>
  439. <td valign="top"><b>Description</b></td>
  440. <td align="center" valign="top"><b>Required</b></td>
  441. </tr>
  442. <tr>
  443. <td valign="top">name</td>
  444. <td valign="top">The package name (may be a wildcard)</td>
  445. <td align="center" valign="top">Yes</td>
  446. </tr>
  447. </table>
  448. <h4>excludepackage</h4>
  449. <p>Same as one entry in the list given by <code>excludepackagenames</code>.</p>
  450. <h5>Parameters</h5>
  451. Same as for <code>package</code>.
  452. <h4>source</h4>
  453. <p>Same as one entry in the list given by <code>sourcefiles</code>.</p>
  454. <h5>Parameters</h5>
  455. <table width="60%" border="1" cellpadding="2" cellspacing="0">
  456. <tr>
  457. <td valign="top"><b>Attribute</b></td>
  458. <td valign="top"><b>Description</b></td>
  459. <td align="center" valign="top"><b>Required</b></td>
  460. </tr>
  461. <tr>
  462. <td valign="top">file</td>
  463. <td valign="top">The source file to document</td>
  464. <td align="center" valign="top">Yes</td>
  465. </tr>
  466. </table>
  467. <h4>doctitle</h4>
  468. <p>Same as the <code>doctitle</code> attribute, but you can nest text
  469. inside the element this way.</p>
  470. <h4>header</h4>
  471. <p>Similar to <code>&lt;doctitle&gt;</code>.</p>
  472. <h4>footer</h4>
  473. <p>Similar to <code>&lt;doctitle&gt;</code>.</p>
  474. <h4>bottom</h4>
  475. <p>Similar to <code>&lt;doctitle&gt;</code>.</p>
  476. <h4>link</h4>
  477. <p>Create link to javadoc output at the given URL. This performs the
  478. same role as the link and linkoffline attributes. You can use either
  479. syntax (or both at once), but with the nested elements you can easily
  480. specify multiple occurrences of the arguments.</p>
  481. <h5>Parameters</h5>
  482. <table width="60%" border="1" cellpadding="2" cellspacing="0">
  483. <tr>
  484. <td valign="top"><b>Attribute</b></td>
  485. <td valign="top"><b>Description</b></td>
  486. <td align="center" valign="top"><b>Required</b></td>
  487. </tr>
  488. <tr>
  489. <td valign="top">href</td>
  490. <td valign="top">The URL for the external documentation you wish to link to</td>
  491. <td align="center" valign="top">Yes</td>
  492. </tr>
  493. <tr>
  494. <td valign="top">offline</td>
  495. <td valign="top">True if this link is not available online at the time of
  496. generating the documentation</td>
  497. <td align="center" valign="top">No</td>
  498. </tr>
  499. <tr>
  500. <td valign="top">packagelistLoc</td>
  501. <td valign="top">The location to the directory containing the package-list file for
  502. the external documentation</td>
  503. <td align="center" valign="top">Only if the offline attribute is true</td>
  504. </tr>
  505. </table>
  506. <h4><a name="groupelement">group</a></h4>
  507. <p>Separates packages on the overview page into whatever groups you
  508. specify, one group per table. This performs the same role as the group
  509. attribute. You can use either syntax (or both at once), but with the
  510. nested elements you can easily specify multiple occurrences of the
  511. arguments.</p>
  512. <h5>Parameters</h5>
  513. <table width="60%" border="1" cellpadding="2" cellspacing="0">
  514. <tr>
  515. <td valign="top"><b>Attribute</b></td>
  516. <td valign="top"><b>Description</b></td>
  517. <td align="center" valign="top"><b>Required</b></td>
  518. </tr>
  519. <tr>
  520. <td valign="top">title</td>
  521. <td valign="top">Title of the group</td>
  522. <td align="center" valign="top">Yes, unless nested <code>&lt;title&gt;</code> given</td>
  523. </tr>
  524. <tr>
  525. <td valign="top">packages</td>
  526. <td valign="top">List of packages to include in that group. Multiple packages are separated with ':'.</td>
  527. <td align="center" valign="top">Yes, unless nested <code>&lt;package&gt;</code>s given</td>
  528. </tr>
  529. </table>
  530. <p>The title may be specified as a nested <code>&lt;title&gt;</code> element
  531. with text contents, and the packages may be listed with nested
  532. <code>&lt;package&gt;</code> elements as for the main task.</p>
  533. <h4>doclet</h4>
  534. <p>The doclet nested element is used to specify the doclet that javadoc will
  535. use to process the input source files. A number of the standard javadoc arguments
  536. are actually arguments of the standard doclet. If these are specified in the javadoc
  537. task's attributes, they will be passed to the doclet specified in the
  538. <code>&lt;doclet&gt;</code> nested element. Such attributes should only be specified,
  539. therefore, if they can be interpreted by the doclet in use.</p>
  540. <p>If the doclet requires additional parameters, these can be specified with
  541. <code>&lt;param&gt;</code> elements within the <code>&lt;doclet&gt;</code>
  542. element. These paramaters are restricted to simple strings. An example usage
  543. of the doclet element is shown below:</p>
  544. <pre> &lt;javadoc ... &gt;
  545. &lt;doclet name=&quot;theDoclet&quot;
  546. path=&quot;path/to/theDoclet&quot;&gt;
  547. &lt;param name=&quot;-foo&quot; value=&quot;foovalue&quot;/&gt;
  548. &lt;param name=&quot;-bar&quot; value=&quot;barvalue&quot;/&gt;
  549. &lt;/doclet&gt;
  550. &lt;/javadoc&gt;
  551. </pre>
  552. <h4><a name="tagelement">tag</a></h4>
  553. <p>The tag nested element is used to specify custom tags. This option
  554. is only available with Java 1.4.</p>
  555. <h5>Parameters</h5>
  556. <table width="60%" border="1" cellpadding="2" cellspacing="0">
  557. <tr>
  558. <td valign="top"><b>Attribute</b></td>
  559. <td valign="top"><b>Description</b></td>
  560. <td align="center" valign="top"><b>Required</b></td>
  561. </tr>
  562. <tr>
  563. <td valign="top">name</td>
  564. <td valign="top">Name of the tag (e.g. <code>todo</code>)</td>
  565. <td align="center" valign="top">Yes, unless the <code>dir</code> attribute is specified.</td>
  566. </tr>
  567. <tr>
  568. <td valign="top">description</td>
  569. <td valign="top">Description for tag (e.g. <code>To do:</code>)</td>
  570. <td align="center" valign="top">Yes, unless the <code>dir</code> attribute is specified.</td>
  571. </tr>
  572. <tr>
  573. <td valign="top">enabled</td>
  574. <td valign="top">Whether or not the tag is enabled (defaults to <code>true</code>)</td>
  575. <td align="center" valign="top">No</td>
  576. </tr>
  577. <tr>
  578. <td valign="top">scope</td>
  579. <td valign="top">Scope for the tag - the elements in which it can be used. This
  580. is a comma separated list of some of the elements: <code>overview</code>,
  581. <code>packages</code>, <code>types</code>, <code>constructors</code>,
  582. <code>methods</code>, <code>fields</code> or the default, <code>all</code>.</td>
  583. <td align="center" valign="top">No</td>
  584. </tr>
  585. <tr>
  586. <td valign="top">dir</td>
  587. <td valign="top">If this attribute is specified, this element will behave as an implicit
  588. <a href="../CoreTypes/fileset.html">fileset</a>. The files included by this fileset should
  589. contain each tag definition on a separate line, as described in the
  590. <a href="http://java.sun.com/j2se/1.4.1/docs/tooldocs/windows/javadoc.html#tag">javadoc reference guide</a>:
  591. <p/>
  592. <code>
  593. ejb.bean:t:"XDoclet EJB Tag"<br/>
  594. todo:a:"To Do"<br/>
  595. </code>
  596. <p/>
  597. Note: If this attribute is specified, all the other attributes in this
  598. element will be ignored.
  599. </td>
  600. <td align="center" valign="top">No</td>
  601. </tr>
  602. </table>
  603. <h4><a name="tagletelement">taglet</a></h4>
  604. <p>The taglet nested element is used to specify custom taglets. This option is
  605. only available with Java 1.4.</p>
  606. <h5>Parameters</h5>
  607. <table width="60%" border="1" cellpadding="2" cellspacing="0">
  608. <tr>
  609. <td valign="top"><b>Attribute</b></td>
  610. <td valign="top"><b>Description</b></td>
  611. <td align="center" valign="top"><b>Required</b></td>
  612. </tr>
  613. <tr>
  614. <td valign="top">name</td>
  615. <td valign="top">The name of the taglet class
  616. (e.g. <code>com.sun.tools.doclets.ToDoTaglet</code>)</td>
  617. <td align="center" valign="top">Yes</td>
  618. </tr>
  619. <tr>
  620. <td valign="top">path</td>
  621. <td valign="top">A path specifying the search path for the taglet class
  622. (e.g. <code>/home/taglets</code>).
  623. The path may also be specified by a nested &lt;path&gt; element</td>
  624. <td align="center" valign="top">No</td>
  625. </tr>
  626. </table>
  627. <h4>sourcepath, classpath and bootclasspath</h4>
  628. <p><code>Javadoc</code>'s <i>sourcepath</i>, <i>classpath</i> and
  629. <i>bootclasspath</i> attributes are <a href="../using.html#path">PATH like
  630. structure</a> and can also be set via nested <i>sourcepath</i>,
  631. <i>classpath</i> and <i>bootclasspath</i> elements
  632. respectively.</p>
  633. <h3>Example</h3>
  634. <pre> &lt;javadoc packagenames=&quot;com.dummy.test.*&quot;
  635. sourcepath=&quot;src&quot;
  636. excludepackagenames=&quot;com.dummy.test.doc-files.*&quot;
  637. defaultexcludes=&quot;yes&quot;
  638. destdir=&quot;docs/api&quot;
  639. author=&quot;true&quot;
  640. version=&quot;true&quot;
  641. use=&quot;true&quot;
  642. windowtitle=&quot;Test API&quot;&gt;
  643. &lt;doctitle&gt;&lt;![CDATA[&lt;h1&gt;Test&lt;/h1&gt;]]&gt;&lt;/doctitle&gt;
  644. &lt;bottom&gt;&lt;![CDATA[&lt;i&gt;Copyright &amp;#169; 2000 Dummy Corp. All Rights Reserved.&lt;/i&gt;]]&gt;&lt;/bottom&gt;
  645. &lt;tag name=&quot;todo&quot; scope=&quot;all&quot; description=&quot;To do:&quot; /&gt;
  646. &lt;group title=&quot;Group 1 Packages&quot; packages=&quot;com.dummy.test.a*&quot;/&gt;
  647. &lt;group title=&quot;Group 2 Packages&quot; packages=&quot;com.dummy.test.b*:com.dummy.test.c*&quot;/&gt;
  648. &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;
  649. &lt;link href=&quot;http://developer.java.sun.com/developer/products/xml/docs/api/&quot;/&gt;
  650. &lt/javadoc&gt;</pre>
  651. <p>is the same as</p>
  652. <pre> &lt;javadoc
  653. destdir=&quot;docs/api&quot;
  654. author=&quot;true&quot;
  655. version=&quot;true&quot;
  656. use=&quot;true&quot;
  657. windowtitle=&quot;Test API&quot;&gt;
  658. &lt;packageset dir=&quot;src&quot; defaultexcludes=&quot;yes&quot;&gt;
  659. &lt;include name=&quot;com/dummy/test/**&quot; /&gt;
  660. &lt;exclude name=&quot;com/dummy/test/doc-files/**&quot;/&gt;
  661. &lt;/packageset&gt;
  662. &lt;doctitle&gt;&lt;![CDATA[&lt;h1&gt;Test&lt;/h1&gt;]]&gt;&lt;/doctitle&gt;
  663. &lt;bottom&gt;&lt;![CDATA[&lt;i&gt;Copyright &amp;#169; 2000 Dummy Corp. All Rights Reserved.&lt;/i&gt;]]&gt;&lt;/bottom&gt;
  664. &lt;tag name=&quot;todo&quot; scope=&quot;all&quot; description=&quot;To do:&quot; /&gt;
  665. &lt;group title=&quot;Group 1 Packages&quot; packages=&quot;com.dummy.test.a*&quot;/&gt;
  666. &lt;group title=&quot;Group 2 Packages&quot; packages=&quot;com.dummy.test.b*:com.dummy.test.c*&quot;/&gt;
  667. &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;
  668. &lt;link href=&quot;http://developer.java.sun.com/developer/products/xml/docs/api/&quot;/&gt;
  669. &lt/javadoc&gt;</pre>
  670. <p>or</p>
  671. <pre> &lt;javadoc
  672. destdir=&quot;docs/api&quot;
  673. author=&quot;true&quot;
  674. version=&quot;true&quot;
  675. use=&quot;true&quot;
  676. windowtitle=&quot;Test API&quot;&gt;
  677. &lt;fileset dir=&quot;src&quot; defaultexcludes=&quot;yes&quot;&gt;
  678. &lt;include name=&quot;com/dummy/test/**&quot; /&gt;
  679. &lt;exclude name=&quot;com/dummy/test/doc-files/**&quot;/&gt;
  680. &lt;/fileset&gt;
  681. &lt;doctitle&gt;&lt;![CDATA[&lt;h1&gt;Test&lt;/h1&gt;]]&gt;&lt;/doctitle&gt;
  682. &lt;bottom&gt;&lt;![CDATA[&lt;i&gt;Copyright &amp;#169; 2000 Dummy Corp. All Rights Reserved.&lt;/i&gt;]]&gt;&lt;/bottom&gt;
  683. &lt;tag name=&quot;todo&quot; scope=&quot;all&quot; description=&quot;To do:&quot; /&gt;
  684. &lt;group title=&quot;Group 1 Packages&quot; packages=&quot;com.dummy.test.a*&quot;/&gt;
  685. &lt;group title=&quot;Group 2 Packages&quot; packages=&quot;com.dummy.test.b*:com.dummy.test.c*&quot;/&gt;
  686. &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;
  687. &lt;link href=&quot;http://developer.java.sun.com/developer/products/xml/docs/api/&quot;/&gt;
  688. &lt/javadoc&gt;</pre>
  689. <hr>
  690. <p align="center">Copyright &copy; 2000-2003 Apache Software Foundation. All rights
  691. Reserved.</p>
  692. </body>
  693. </html>