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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783
  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 any VM of at least version 1.4. 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. <tr>
  398. <td valign="top">linksource</td>
  399. <td valign="top">Generate hyperlinks to source files.
  400. <em>since Ant 1.6</em>.
  401. (<code>yes</code> | <code>no</code>). Default is no.</td>
  402. <td align="center" valign="top">1.4+</td>
  403. <td align="center" valign="top">No</td>
  404. </tr>
  405. <tr>
  406. <td valign="top">breakiterator</td>
  407. <td valign="top">Use the new breakiterator algorithm.
  408. <em>since Ant 1.6</em>.
  409. (<code>yes</code> | <code>no</code>). Default is no.</td>
  410. <td align="center" valign="top">1.4+</td>
  411. <td align="center" valign="top">No</td>
  412. </tr>
  413. <tr>
  414. <td valign="top">noqualifier</td>
  415. <td valign="top">Enables the <code>-noqualifier</code> argument -
  416. must be <code>all</code> or a colon separated list of packages.
  417. <em>since Ant 1.6</em>.</td>
  418. <td align="center" valign="top">1.4+</td>
  419. <td align="center" valign="top">No</td>
  420. </tr>
  421. </table>
  422. <h4><a name="groupattribute">Format of the group attribute</a></h4>
  423. <p>The arguments are comma-delimited. Each single argument is 2
  424. space-delimited strings, where the first one is the group's title and
  425. the second one a colon delimited list of packages.</p>
  426. <p>If you need to specify more than one group, or a group whose title
  427. contains a comma or a space character, using <a
  428. href="#groupelement">nested group elements</a> is highly
  429. recommended.</p>
  430. <p>E.g., </p>
  431. <pre> group=&quot;XSLT_Packages org.apache.xalan.xslt*,XPath_Packages org.apache.xalan.xpath*&quot;
  432. </pre>
  433. <h3>Parameters specified as nested elements</h3>
  434. <h4>packageset</h4>
  435. <p>A <a href="../CoreTypes/dirset.html">DirSet</a>. All matched
  436. directories that contain Java source files will be passed to javadoc
  437. as package names. Package names are created from the directory names
  438. by translating the directory separator into dots. Ant assumes the
  439. base directory of the packageset points to the root of a package
  440. hierarchy.</p>
  441. <p>The <code>packagenames</code>, <code>excludepackagenames</code> and
  442. <code>defaultexcludes</code> attributes of the task have no effect on
  443. the nested <code>&lt;packageset&gt;</code> elements.</p>
  444. <h4>fileset</h4>
  445. <p>A <a href="../CoreTypes/fileset.html">FileSet</a>. All matched
  446. files will be passed to javadoc as source files. Ant will
  447. automatically add the include pattern <code>**/*.java</code> to these
  448. filesets.</p>
  449. <p>Nested filesets can be used to document sources that are in the
  450. default package or if you want to exclude certain files from
  451. documentation. If you want to document all source files and don't use
  452. the default package, packagesets should be used instead as this
  453. increases javadocs performance.</p>
  454. <p>The <code>packagenames</code>, <code>excludepackagenames</code> and
  455. <code>defaultexcludes</code> attributes of the task have no effect on
  456. the nested <code>&lt;fileset&gt;</code> elements.</p>
  457. <h4>package</h4>
  458. <p>Same as one entry in the list given by <code>packagenames</code>.</p>
  459. <h5>Parameters</h5>
  460. <table width="60%" border="1" cellpadding="2" cellspacing="0">
  461. <tr>
  462. <td valign="top"><b>Attribute</b></td>
  463. <td valign="top"><b>Description</b></td>
  464. <td align="center" valign="top"><b>Required</b></td>
  465. </tr>
  466. <tr>
  467. <td valign="top">name</td>
  468. <td valign="top">The package name (may be a wildcard)</td>
  469. <td align="center" valign="top">Yes</td>
  470. </tr>
  471. </table>
  472. <h4>excludepackage</h4>
  473. <p>Same as one entry in the list given by <code>excludepackagenames</code>.</p>
  474. <h5>Parameters</h5>
  475. Same as for <code>package</code>.
  476. <h4>source</h4>
  477. <p>Same as one entry in the list given by <code>sourcefiles</code>.</p>
  478. <h5>Parameters</h5>
  479. <table width="60%" border="1" cellpadding="2" cellspacing="0">
  480. <tr>
  481. <td valign="top"><b>Attribute</b></td>
  482. <td valign="top"><b>Description</b></td>
  483. <td align="center" valign="top"><b>Required</b></td>
  484. </tr>
  485. <tr>
  486. <td valign="top">file</td>
  487. <td valign="top">The source file to document</td>
  488. <td align="center" valign="top">Yes</td>
  489. </tr>
  490. </table>
  491. <h4>doctitle</h4>
  492. <p>Same as the <code>doctitle</code> attribute, but you can nest text
  493. inside the element this way.</p>
  494. <h4>header</h4>
  495. <p>Similar to <code>&lt;doctitle&gt;</code>.</p>
  496. <h4>footer</h4>
  497. <p>Similar to <code>&lt;doctitle&gt;</code>.</p>
  498. <h4>bottom</h4>
  499. <p>Similar to <code>&lt;doctitle&gt;</code>.</p>
  500. <h4>link</h4>
  501. <p>Create link to javadoc output at the given URL. This performs the
  502. same role as the link and linkoffline attributes. You can use either
  503. syntax (or both at once), but with the nested elements you can easily
  504. specify multiple occurrences of the arguments.</p>
  505. <h5>Parameters</h5>
  506. <table width="60%" border="1" cellpadding="2" cellspacing="0">
  507. <tr>
  508. <td valign="top"><b>Attribute</b></td>
  509. <td valign="top"><b>Description</b></td>
  510. <td align="center" valign="top"><b>Required</b></td>
  511. </tr>
  512. <tr>
  513. <td valign="top">href</td>
  514. <td valign="top">The URL for the external documentation you wish to link to</td>
  515. <td align="center" valign="top">Yes</td>
  516. </tr>
  517. <tr>
  518. <td valign="top">offline</td>
  519. <td valign="top">True if this link is not available online at the time of
  520. generating the documentation</td>
  521. <td align="center" valign="top">No</td>
  522. </tr>
  523. <tr>
  524. <td valign="top">packagelistLoc</td>
  525. <td valign="top">The location to the directory containing the package-list file for
  526. the external documentation</td>
  527. <td align="center" valign="top">Only if the offline attribute is true</td>
  528. </tr>
  529. </table>
  530. <h4><a name="groupelement">group</a></h4>
  531. <p>Separates packages on the overview page into whatever groups you
  532. specify, one group per table. This performs the same role as the group
  533. attribute. You can use either syntax (or both at once), but with the
  534. nested elements you can easily specify multiple occurrences of the
  535. arguments.</p>
  536. <h5>Parameters</h5>
  537. <table width="60%" border="1" cellpadding="2" cellspacing="0">
  538. <tr>
  539. <td valign="top"><b>Attribute</b></td>
  540. <td valign="top"><b>Description</b></td>
  541. <td align="center" valign="top"><b>Required</b></td>
  542. </tr>
  543. <tr>
  544. <td valign="top">title</td>
  545. <td valign="top">Title of the group</td>
  546. <td align="center" valign="top">Yes, unless nested <code>&lt;title&gt;</code> given</td>
  547. </tr>
  548. <tr>
  549. <td valign="top">packages</td>
  550. <td valign="top">List of packages to include in that group. Multiple packages are separated with ':'.</td>
  551. <td align="center" valign="top">Yes, unless nested <code>&lt;package&gt;</code>s given</td>
  552. </tr>
  553. </table>
  554. <p>The title may be specified as a nested <code>&lt;title&gt;</code> element
  555. with text contents, and the packages may be listed with nested
  556. <code>&lt;package&gt;</code> elements as for the main task.</p>
  557. <h4>doclet</h4>
  558. <p>The doclet nested element is used to specify the doclet that javadoc will
  559. use to process the input source files. A number of the standard javadoc arguments
  560. are actually arguments of the standard doclet. If these are specified in the javadoc
  561. task's attributes, they will be passed to the doclet specified in the
  562. <code>&lt;doclet&gt;</code> nested element. Such attributes should only be specified,
  563. therefore, if they can be interpreted by the doclet in use.</p>
  564. <p>If the doclet requires additional parameters, these can be specified with
  565. <code>&lt;param&gt;</code> elements within the <code>&lt;doclet&gt;</code>
  566. element. These paramaters are restricted to simple strings. An example usage
  567. of the doclet element is shown below:</p>
  568. <pre> &lt;javadoc ... &gt;
  569. &lt;doclet name=&quot;theDoclet&quot;
  570. path=&quot;path/to/theDoclet&quot;&gt;
  571. &lt;param name=&quot;-foo&quot; value=&quot;foovalue&quot;/&gt;
  572. &lt;param name=&quot;-bar&quot; value=&quot;barvalue&quot;/&gt;
  573. &lt;/doclet&gt;
  574. &lt;/javadoc&gt;
  575. </pre>
  576. <h4><a name="tagelement">tag</a></h4>
  577. <p>The tag nested element is used to specify custom tags. This option
  578. is only available with Java 1.4.</p>
  579. <p>If you want to specify a standard tag using a nested tag element
  580. because you want to determine the order the tags are output, you must
  581. not set the description attribute for those tags.</p>
  582. <h5>Parameters</h5>
  583. <table width="60%" border="1" cellpadding="2" cellspacing="0">
  584. <tr>
  585. <td valign="top"><b>Attribute</b></td>
  586. <td valign="top"><b>Description</b></td>
  587. <td align="center" valign="top"><b>Required</b></td>
  588. </tr>
  589. <tr>
  590. <td valign="top">name</td>
  591. <td valign="top">Name of the tag (e.g. <code>todo</code>)</td>
  592. <td align="center" valign="top">Yes, unless the <code>dir</code> attribute is specified.</td>
  593. </tr>
  594. <tr>
  595. <td valign="top">description</td>
  596. <td valign="top">Description for tag (e.g. <code>To do:</code>)</td>
  597. <td align="center" valign="top">Yes, unless the <code>dir</code>
  598. attribute is specified or name is a standard tag.</td>
  599. </tr>
  600. <tr>
  601. <td valign="top">enabled</td>
  602. <td valign="top">Whether or not the tag is enabled (defaults to <code>true</code>)</td>
  603. <td align="center" valign="top">No</td>
  604. </tr>
  605. <tr>
  606. <td valign="top">scope</td>
  607. <td valign="top">Scope for the tag - the elements in which it can be used. This
  608. is a comma separated list of some of the elements: <code>overview</code>,
  609. <code>packages</code>, <code>types</code>, <code>constructors</code>,
  610. <code>methods</code>, <code>fields</code> or the default, <code>all</code>.</td>
  611. <td align="center" valign="top">No</td>
  612. </tr>
  613. <tr>
  614. <td valign="top">dir</td>
  615. <td valign="top">If this attribute is specified, this element will behave as an implicit
  616. <a href="../CoreTypes/fileset.html">fileset</a>. The files included by this fileset should
  617. contain each tag definition on a separate line, as described in the
  618. <a href="http://java.sun.com/j2se/1.4.1/docs/tooldocs/windows/javadoc.html#tag">javadoc reference guide</a>:
  619. <p/>
  620. <code>
  621. ejb.bean:t:"XDoclet EJB Tag"<br/>
  622. todo:a:"To Do"<br/>
  623. </code>
  624. <p/>
  625. Note: If this attribute is specified, all the other attributes in this
  626. element will be ignored.
  627. </td>
  628. <td align="center" valign="top">No</td>
  629. </tr>
  630. </table>
  631. <h4><a name="tagletelement">taglet</a></h4>
  632. <p>The taglet nested element is used to specify custom taglets. This option is
  633. only available with Java 1.4.</p>
  634. <h5>Parameters</h5>
  635. <table width="60%" border="1" cellpadding="2" cellspacing="0">
  636. <tr>
  637. <td valign="top"><b>Attribute</b></td>
  638. <td valign="top"><b>Description</b></td>
  639. <td align="center" valign="top"><b>Required</b></td>
  640. </tr>
  641. <tr>
  642. <td valign="top">name</td>
  643. <td valign="top">The name of the taglet class
  644. (e.g. <code>com.sun.tools.doclets.ToDoTaglet</code>)</td>
  645. <td align="center" valign="top">Yes</td>
  646. </tr>
  647. <tr>
  648. <td valign="top">path</td>
  649. <td valign="top">A path specifying the search path for the taglet class
  650. (e.g. <code>/home/taglets</code>).
  651. The path may also be specified by a nested &lt;path&gt; element</td>
  652. <td align="center" valign="top">No</td>
  653. </tr>
  654. </table>
  655. <h4>sourcepath, classpath and bootclasspath</h4>
  656. <p><code>Javadoc</code>'s <i>sourcepath</i>, <i>classpath</i> and
  657. <i>bootclasspath</i> attributes are <a href="../using.html#path">PATH like
  658. structure</a> and can also be set via nested <i>sourcepath</i>,
  659. <i>classpath</i> and <i>bootclasspath</i> elements
  660. respectively.</p>
  661. <h4>arg</h4>
  662. <p>Use nested <code>&lt;arg&gt;</code> to specify additional
  663. arguments. See <a href="../using.html#arg">Command line
  664. arguments</a>. <em>Since Ant 1.6</em></p>
  665. <h3>Example</h3>
  666. <pre> &lt;javadoc packagenames=&quot;com.dummy.test.*&quot;
  667. sourcepath=&quot;src&quot;
  668. excludepackagenames=&quot;com.dummy.test.doc-files.*&quot;
  669. defaultexcludes=&quot;yes&quot;
  670. destdir=&quot;docs/api&quot;
  671. author=&quot;true&quot;
  672. version=&quot;true&quot;
  673. use=&quot;true&quot;
  674. windowtitle=&quot;Test API&quot;&gt;
  675. &lt;doctitle&gt;&lt;![CDATA[&lt;h1&gt;Test&lt;/h1&gt;]]&gt;&lt;/doctitle&gt;
  676. &lt;bottom&gt;&lt;![CDATA[&lt;i&gt;Copyright &amp;#169; 2000 Dummy Corp. All Rights Reserved.&lt;/i&gt;]]&gt;&lt;/bottom&gt;
  677. &lt;tag name=&quot;todo&quot; scope=&quot;all&quot; description=&quot;To do:&quot; /&gt;
  678. &lt;group title=&quot;Group 1 Packages&quot; packages=&quot;com.dummy.test.a*&quot;/&gt;
  679. &lt;group title=&quot;Group 2 Packages&quot; packages=&quot;com.dummy.test.b*:com.dummy.test.c*&quot;/&gt;
  680. &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;
  681. &lt;link href=&quot;http://developer.java.sun.com/developer/products/xml/docs/api/&quot;/&gt;
  682. &lt/javadoc&gt;</pre>
  683. <p>is the same as</p>
  684. <pre> &lt;javadoc
  685. destdir=&quot;docs/api&quot;
  686. author=&quot;true&quot;
  687. version=&quot;true&quot;
  688. use=&quot;true&quot;
  689. windowtitle=&quot;Test API&quot;&gt;
  690. &lt;packageset dir=&quot;src&quot; defaultexcludes=&quot;yes&quot;&gt;
  691. &lt;include name=&quot;com/dummy/test/**&quot; /&gt;
  692. &lt;exclude name=&quot;com/dummy/test/doc-files/**&quot;/&gt;
  693. &lt;/packageset&gt;
  694. &lt;doctitle&gt;&lt;![CDATA[&lt;h1&gt;Test&lt;/h1&gt;]]&gt;&lt;/doctitle&gt;
  695. &lt;bottom&gt;&lt;![CDATA[&lt;i&gt;Copyright &amp;#169; 2000 Dummy Corp. All Rights Reserved.&lt;/i&gt;]]&gt;&lt;/bottom&gt;
  696. &lt;tag name=&quot;todo&quot; scope=&quot;all&quot; description=&quot;To do:&quot; /&gt;
  697. &lt;group title=&quot;Group 1 Packages&quot; packages=&quot;com.dummy.test.a*&quot;/&gt;
  698. &lt;group title=&quot;Group 2 Packages&quot; packages=&quot;com.dummy.test.b*:com.dummy.test.c*&quot;/&gt;
  699. &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;
  700. &lt;link href=&quot;http://developer.java.sun.com/developer/products/xml/docs/api/&quot;/&gt;
  701. &lt/javadoc&gt;</pre>
  702. <p>or</p>
  703. <pre> &lt;javadoc
  704. destdir=&quot;docs/api&quot;
  705. author=&quot;true&quot;
  706. version=&quot;true&quot;
  707. use=&quot;true&quot;
  708. windowtitle=&quot;Test API&quot;&gt;
  709. &lt;fileset dir=&quot;src&quot; defaultexcludes=&quot;yes&quot;&gt;
  710. &lt;include name=&quot;com/dummy/test/**&quot; /&gt;
  711. &lt;exclude name=&quot;com/dummy/test/doc-files/**&quot;/&gt;
  712. &lt;/fileset&gt;
  713. &lt;doctitle&gt;&lt;![CDATA[&lt;h1&gt;Test&lt;/h1&gt;]]&gt;&lt;/doctitle&gt;
  714. &lt;bottom&gt;&lt;![CDATA[&lt;i&gt;Copyright &amp;#169; 2000 Dummy Corp. All Rights Reserved.&lt;/i&gt;]]&gt;&lt;/bottom&gt;
  715. &lt;tag name=&quot;todo&quot; scope=&quot;all&quot; description=&quot;To do:&quot; /&gt;
  716. &lt;group title=&quot;Group 1 Packages&quot; packages=&quot;com.dummy.test.a*&quot;/&gt;
  717. &lt;group title=&quot;Group 2 Packages&quot; packages=&quot;com.dummy.test.b*:com.dummy.test.c*&quot;/&gt;
  718. &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;
  719. &lt;link href=&quot;http://developer.java.sun.com/developer/products/xml/docs/api/&quot;/&gt;
  720. &lt/javadoc&gt;</pre>
  721. <hr>
  722. <p align="center">Copyright &copy; 2000-2003 Apache Software Foundation. All rights
  723. Reserved.</p>
  724. </body>
  725. </html>