gjdoc.1 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915
  1. .\" Automatically generated by Pod::Man 2.16 (Pod::Simple 3.05)
  2. .\"
  3. .\" Standard preamble:
  4. .\" ========================================================================
  5. .de Sh \" Subsection heading
  6. .br
  7. .if t .Sp
  8. .ne 5
  9. .PP
  10. \fB\\$1\fR
  11. .PP
  12. ..
  13. .de Sp \" Vertical space (when we can't use .PP)
  14. .if t .sp .5v
  15. .if n .sp
  16. ..
  17. .de Vb \" Begin verbatim text
  18. .ft CW
  19. .nf
  20. .ne \\$1
  21. ..
  22. .de Ve \" End verbatim text
  23. .ft R
  24. .fi
  25. ..
  26. .\" Set up some character translations and predefined strings. \*(-- will
  27. .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
  28. .\" double quote, and \*(R" will give a right double quote. \*(C+ will
  29. .\" give a nicer C++. Capital omega is used to do unbreakable dashes and
  30. .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
  31. .\" nothing in troff, for use with C<>.
  32. .tr \(*W-
  33. .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
  34. .ie n \{\
  35. . ds -- \(*W-
  36. . ds PI pi
  37. . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
  38. . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
  39. . ds L" ""
  40. . ds R" ""
  41. . ds C` ""
  42. . ds C' ""
  43. 'br\}
  44. .el\{\
  45. . ds -- \|\(em\|
  46. . ds PI \(*p
  47. . ds L" ``
  48. . ds R" ''
  49. 'br\}
  50. .\"
  51. .\" Escape single quotes in literal strings from groff's Unicode transform.
  52. .ie \n(.g .ds Aq \(aq
  53. .el .ds Aq '
  54. .\"
  55. .\" If the F register is turned on, we'll generate index entries on stderr for
  56. .\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index
  57. .\" entries marked with X<> in POD. Of course, you'll have to process the
  58. .\" output yourself in some meaningful fashion.
  59. .ie \nF \{\
  60. . de IX
  61. . tm Index:\\$1\t\\n%\t"\\$2"
  62. ..
  63. . nr % 0
  64. . rr F
  65. .\}
  66. .el \{\
  67. . de IX
  68. ..
  69. .\}
  70. .\"
  71. .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
  72. .\" Fear. Run. Save yourself. No user-serviceable parts.
  73. . \" fudge factors for nroff and troff
  74. .if n \{\
  75. . ds #H 0
  76. . ds #V .8m
  77. . ds #F .3m
  78. . ds #[ \f1
  79. . ds #] \fP
  80. .\}
  81. .if t \{\
  82. . ds #H ((1u-(\\\\n(.fu%2u))*.13m)
  83. . ds #V .6m
  84. . ds #F 0
  85. . ds #[ \&
  86. . ds #] \&
  87. .\}
  88. . \" simple accents for nroff and troff
  89. .if n \{\
  90. . ds ' \&
  91. . ds ` \&
  92. . ds ^ \&
  93. . ds , \&
  94. . ds ~ ~
  95. . ds /
  96. .\}
  97. .if t \{\
  98. . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
  99. . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
  100. . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
  101. . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
  102. . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
  103. . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
  104. .\}
  105. . \" troff and (daisy-wheel) nroff accents
  106. .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
  107. .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
  108. .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
  109. .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
  110. .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
  111. .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
  112. .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
  113. .ds ae a\h'-(\w'a'u*4/10)'e
  114. .ds Ae A\h'-(\w'A'u*4/10)'E
  115. . \" corrections for vroff
  116. .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
  117. .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
  118. . \" for low resolution devices (crt and lpr)
  119. .if \n(.H>23 .if \n(.V>19 \
  120. \{\
  121. . ds : e
  122. . ds 8 ss
  123. . ds o a
  124. . ds d- d\h'-1'\(ga
  125. . ds D- D\h'-1'\(hy
  126. . ds th \o'bp'
  127. . ds Th \o'LP'
  128. . ds ae ae
  129. . ds Ae AE
  130. .\}
  131. .rm #[ #] #H #V #F C
  132. .\" ========================================================================
  133. .\"
  134. .IX Title "GJDOC 1"
  135. .TH GJDOC 1 "2015-07-16" "0.99.1-pre" "GNU"
  136. .\" For nroff, turn off justification. Always turn off hyphenation; it makes
  137. .\" way too many mistakes in technical documents.
  138. .if n .ad l
  139. .nh
  140. .SH "NAME"
  141. cp\-tools \- GNU Classpath Tools Guide
  142. .SH "SYNOPSIS"
  143. .IX Header "SYNOPSIS"
  144. gjdoc [\fB\-sourcepath\fR \fIpathlist\fR]
  145. [\fB\-all\fR] [\fB\-subpackages\fR \fIpkg:pkg:...\fR] [\fB\-exclude\fR \fIpkglist\fR]
  146. [\fB\-encoding\fR \fIcharset\fR] [\fB\-locale\fR \fIname\fR] [\fB\-source\fR \fIrelease\fR]
  147. [\fB\-public\fR] [\fB\-protected\fR] [\fB\-package\fR] [\fB\-private\fR]
  148. [\fB\-doctitle\fR \fItext\fR] [\fB\-header\fR \fItext\fR] [\fB\-footer\fR \fItext\fR] [\fB\-bottom\fR \fItext\fR]
  149. [\fB\-link\fR \fIurl\fR] [\fB\-linkoffline\fR \fIurl\fR \fIpath\fR] [\fB\-noqualifier\fR \fIpkg:pkg:...\fR]
  150. [\fB\-tagletpath\fR \fIpathlist\fR] [\fB\-taglet\fR \fIclassName\fR] [\fB\-tag\fR \fItagspec\fR]
  151. [\fB\-use\fR] [\fB\-linksource\fR] [\fB\-splitindex\fR] [\fB\-noindex\fR] [\fB\-notree\fR]
  152. [\fB\-version\fR] [\fB\-author\fR] [\fB\-nosince\fR] [\fB\-addstylesheet\fR \fIfile\fR]
  153. [\fB\-d\fR \fItargetdir\fR]
  154. [\fIpackages\fR...] [\fIsourcefiles\fR...] [@\fIcmdfile\fR]
  155. .PP
  156. gjdoc [\fB\-sourcepath\fR \fIpathlist\fR]
  157. [\fB\-all\fR] [\fB\-subpackages\fR \fIpkg:pkg:...\fR] [\fB\-exclude\fR \fIpkglist\fR]
  158. [\fB\-encoding\fR \fIcharset\fR] [\fB\-locale\fR \fIname\fR] [\fB\-source\fR \fIrelease\fR]
  159. [\fB\-public\fR] [\fB\-protected\fR] [\fB\-package\fR] [\fB\-private\fR]
  160. [\fB\-docletpath\fR \fIpathlist\fR] [\fB\-doclet\fR \fIclassName\fR]
  161. [\fIpackages\fR...] [\fIsourcefiles\fR...] [@\fIcmdfile\fR]
  162. [doclet options]
  163. .PP
  164. gjdoc \fB\-\-help\fR
  165. .PP
  166. gjdoc \fB\-\-version\fR
  167. .PP
  168. Only the most useful options are listed here; see below for the
  169. remainder.
  170. .SH "DESCRIPTION"
  171. .IX Header "DESCRIPTION"
  172. Gjdoc can be used in two ways: as a stand-alone documentation tool, or
  173. as a driver for a user-specified Doclet.
  174. .PP
  175. In the default mode, Gjdoc will use the Standard Doclet
  176. \&\fBHtmlDoclet\fR to generate a set of \s-1HTML\s0 pages. The canonical
  177. usage is:
  178. .PP
  179. .Vb 1
  180. \& gjdoc \-s src/java/ \-all \-d api\-docs/
  181. .Ve
  182. .PP
  183. Here, \fBsrc/java/\fR is the root of your source code class
  184. hierarchy, \fB\-all\fR means that all valid Java files found under
  185. this root directory should be processed, and \fBapi\-docs/\fR is the
  186. directory where the generated documentation should be placed.
  187. .PP
  188. To learn more about running Doclets other than the Standard Doclet,
  189. refer to the manual.
  190. .SH "OPTIONS"
  191. .IX Header "OPTIONS"
  192. .Sh "Option Summary by Type"
  193. .IX Subsection "Option Summary by Type"
  194. Here is a summary of all the options of both Gjdoc and the Standard
  195. Doclet, grouped by type. Explanations are in the following sections.
  196. .IP "\fISource Set Options\fR" 4
  197. .IX Item "Source Set Options"
  198. \&\fB\-sourcepath\fR \fIpathlist\fR \fB\-subpackages\fR \fIpkglist\fR \fB\-exclude\fR \fIpkglist\fR
  199. .IP "\fISource Format Options\fR" 4
  200. .IX Item "Source Format Options"
  201. \&\fB\-source\fR \fIrelease\fR \fB\-encoding\fR \fIencoding\fR \fB\-breakiterator\fR
  202. .IP "\fIInterlinking Options\fR" 4
  203. .IX Item "Interlinking Options"
  204. \&\fB\-link\fR \fIurl\fR \fB\-linkoffline\fR \fIurl\fR\fB \fR\fIfile\fR \fB\-noqualifier\fR \fIpkg:pkg:...\fR
  205. .IP "\fIGeneration Options\fR" 4
  206. .IX Item "Generation Options"
  207. \&\fB\-author \-licensetext \-use \-version \-splitindex \-noindex
  208. \-nodeprecated \-nodeprecatedlist \-nohelp \-nonavbar
  209. \-nosince \-notree \-public \-protected \-package \-private
  210. \-docfilessubdirs \-excludedocfilessubdir\fR \fIdirname\fR
  211. \fB\-linksource\fR
  212. .IP "\fIOutput Options\fR" 4
  213. .IX Item "Output Options"
  214. \&\fB\-d \-locale\fR \fIname\fR \fB\-charset\fR \fIcharset\fR \fB\-docencoding\fR \fIcharset\fR
  215. \fB\-validhtml \-baseurl\fR \fIurl\fR
  216. .IP "\fIDecoration Options\fR" 4
  217. .IX Item "Decoration Options"
  218. \&\fB\-windowtitle\fR \fItext\fR \fB\-doctitle\fR \fItext\fR \fB\-title\fR \fItext\fR
  219. \fB\-header\fR \fItext\fR \fB\-footer\fR \fItext\fR \fB\-bottom\fR \fItext\fR
  220. \fB\-helpfile\fR \fIfile\fR \fB\-stylesheetfile\fR \fIfile\fR \fB\-addstylesheet\fR \fIfile\fR
  221. \fB\-group\fR \fIgroupheading\fR\fB \fR\fIpkgpattern:pkgpattern:...\fR
  222. .IP "\fITaglet Options\fR" 4
  223. .IX Item "Taglet Options"
  224. \&\fB\-tagletpath \-taglet\fR \fIclassname\fR \fB\-tag\fR \fItagspec\fR
  225. .IP "\fIDoclet Options\fR" 4
  226. .IX Item "Doclet Options"
  227. \&\fB\-docletpath \-doclet\fR \fIclassname\fR
  228. .IP "\fIVerbosity Options\fR" 4
  229. .IX Item "Verbosity Options"
  230. \&\fB\-quiet \-verbose\fR
  231. .IP "\fIVirtual Machine Options\fR" 4
  232. .IX Item "Virtual Machine Options"
  233. \&\fB\-classpath \-bootclasspath \-J\fR \fIvmopt\fR
  234. .Sh "Selecting which Source Files to Process"
  235. .IX Subsection "Selecting which Source Files to Process"
  236. .IP "\fB\-s\fR \fIpathlist\fR" 4
  237. .IX Item "-s pathlist"
  238. .PD 0
  239. .IP "\fB\-sourcepath\fR \fIpathlist\fR" 4
  240. .IX Item "-sourcepath pathlist"
  241. .PD
  242. Look for source files in the specified directory or directories.
  243. .Sp
  244. \&\fIpathlist\fR should be one or more directory paths separated by your
  245. platform's path separator (usually \fB:\fR or \fB;\fR).
  246. .Sp
  247. If this option is not given, \fBgjdoc\fR will look for source
  248. files in the current directory.
  249. .Sp
  250. The directories specified should be root directories in terms of the
  251. Java package system. For example, if you want to generate
  252. documentation for classes in package \fBfoo.bar\fR, you must specify
  253. the directory containing the top-level \fB\f(BIfoo\fB\fR
  254. sub-directory, not the directory \fB\f(BIfoo/bar/\fB\fR in which the
  255. Java source files reside.
  256. .Sp
  257. The short-hand alias \fB\-s\fR is specific to \fBgjdoc\fR and
  258. not compatible to Sun \fBjavadoc\fR.
  259. .IP "\fB\-all\fR" 4
  260. .IX Item "-all"
  261. \&\fI[\s-1EXPERIMENTAL\s0]\fR
  262. Process all valid Java source files found in the directories listed in
  263. the source path and their sub-directories.
  264. .Sp
  265. This is an option specific to \fBgjdoc\fR and not compatible to
  266. Sun \fBjavadoc\fR.
  267. .IP "\fB\-subpackages\fR \fIpkg:pkg:...\fR" 4
  268. .IX Item "-subpackages pkg:pkg:..."
  269. Process the classes in the given Java packages and all sub-packages,
  270. recursively. Note that multiple package names must be separated with
  271. colons instead of whitespace.
  272. .IP "\fB\-exclude\fR \fIpkg:pkg:...\fR" 4
  273. .IX Item "-exclude pkg:pkg:..."
  274. Do not process classes in the given Java packages and all
  275. sub-packages, recursively. This option can be used in conjunction
  276. with \fB\-all\fR or \fB\-subpackages\fR in order to exclude
  277. individual packages or package sub-trees from the output.
  278. .IP "\fIpackages\fR\fB...\fR" 4
  279. .IX Item "packages..."
  280. Process all classes in the given Java packages.
  281. .IP "\fIsourcefiles\fR\fB...\fR" 4
  282. .IX Item "sourcefiles..."
  283. Process the classes in the given Java source files.
  284. .Sh "Specifying the Format of Input Files"
  285. .IX Subsection "Specifying the Format of Input Files"
  286. .IP "\fB\-source\fR \fIrelease\fR" 4
  287. .IX Item "-source release"
  288. Assume that the source files are targeted at the given release of the
  289. Java platform.
  290. .Sp
  291. \&\fIrelease\fR should be the version number of a Java platform release
  292. in the format \s-1MAJOR\s0.MINOR, for example \fB1.4\fR.
  293. .Sp
  294. This option is currently ignored except that an error is raised if a
  295. release number other than \fB1.2\fR, \fB1.3\fR or \fB1.4\fR is
  296. specified.
  297. .IP "\fB\-encoding\fR \fIcharset\fR" 4
  298. .IX Item "-encoding charset"
  299. Assume that the source files are encoded using \fIcharset\fR.
  300. .Sp
  301. Examples for \fIcharset\fR are \fBUS-ASCII\fR, \fB\s-1ISO\-8859\-1\s0\fR or
  302. \&\fB\s-1UTF\-8\s0\fR.
  303. .Sp
  304. The semantics of \fIcharset\fR are identical to those of \fBjava.nio.charset.Charset.forName(String)\fR.
  305. .IP "\fB\-breakiterator\fR" 4
  306. .IX Item "-breakiterator"
  307. Use the locale's java.text.BreakIterator instead of the internal
  308. first sentence detector.
  309. .Sp
  310. By default, \fBgjdoc\fR uses an internal algorithm to determine
  311. where a sentence ends. When this option is given, it will instead use
  312. the \fBjava.text.BreakIterator\fR instance for the locale given with
  313. \&\fB\-locale\fR (or the default locale).
  314. .Sp
  315. This option should be specified when applying \fBgjdoc\fR to
  316. source code commented in a non-latin language for which the default
  317. first sentence detector does not work. For all other cases, the
  318. default (do not use BreakIterator) produces better results at the time
  319. of this writing.
  320. .Sh "Interlinking with other Documentation Sets"
  321. .IX Subsection "Interlinking with other Documentation Sets"
  322. .IP "\fB\-link\fR \fIurl\fR" 4
  323. .IX Item "-link url"
  324. Create hyperlinks to another documentation set.
  325. .Sp
  326. By default, \fBgjdoc\fR will only create hyperlinks to classes in
  327. the source set. Use this option to additionally create hyperlinks to
  328. classes covered by the specified documentation set.
  329. .Sp
  330. \&\fIurl\fR should be the root \s-1URL\s0 of the other documentation set. For
  331. example, to add hyperlinks to \s-1GNU\s0 Classpath, specify the following:
  332. .Sp
  333. .Vb 1
  334. \& \-link http://developer.classpath.org/doc/
  335. .Ve
  336. .Sp
  337. The \fB\-link\fR option can be specified multiple times.
  338. .Sp
  339. Note that specifying the \fB\-link\fR option will cause an \s-1HTTP\s0
  340. access every time gjdoc is invoked. You can use \fB\-linkoffline\fR
  341. instead to avoid this access.
  342. .IP "\fB\-linkoffline\fR \fIurl\fR\fB \fR\fIfile\fR" 4
  343. .IX Item "-linkoffline url file"
  344. Create hyperlinks to another documentation set which is also present
  345. on the local file system.
  346. .Sp
  347. This option works exactly like \fB\-link\fR, except that it accesses
  348. the local file system instead of the network for determining which
  349. classes are covered by the linked documentation set.
  350. .Sp
  351. When using \fB\-linkoffline\fR the remote documentation set is not
  352. accessed at all, which can significantly speed up generation time
  353. depending on your network connection. The generated hyperlinks to the
  354. documentation set however refer to the remote set, not to the local
  355. one, so that you can distribute the documentation without any further
  356. dependencies.
  357. .Sp
  358. The \fB\-linkoffline\fR option can be specified multiple times.
  359. .IP "\fB\-noqualifier\fR \fIpkg:pkg:...\fR" 4
  360. .IX Item "-noqualifier pkg:pkg:..."
  361. Do not qualify names of classes in the given packages with their
  362. package name.
  363. .Sp
  364. By default, a class name is displayed unqualified only if the class is
  365. part of the source set or a linked documentation set, and qualified
  366. with the name of its containing package if it is not. You can use this
  367. option to force unqualified names for classes even if they are not
  368. part of the documentation set.
  369. .Sp
  370. For example, usually a reference to the String class is represented
  371. fully-qualified as \fBjava.lang.String\fR (unless you link to the
  372. appropriate documentation set using \fB\-link\fR) because it isn't
  373. part of the documentation set. You can specify \fB\-noqualifier
  374. java.lang\fR to render the same references just as \fBString\fR.
  375. .Sp
  376. Note that for all unqualified class names, a tooltip is provided when
  377. you place your mouse pointer over it in the \s-1HTML\s0 documentation.
  378. .IP "\fB\-noqualifier\fR \fBall\fR" 4
  379. .IX Item "-noqualifier all"
  380. Omit package name qualifier from all class names.
  381. .Sp
  382. Specify this option to omit package name qualifiers altogether,
  383. .Sh "Selecting which Information to Generate"
  384. .IX Subsection "Selecting which Information to Generate"
  385. .IP "\fB\-public\fR" 4
  386. .IX Item "-public"
  387. Only include public members of public classes in the output. By
  388. default, protected class members are included as well.
  389. .IP "\fB\-protected\fR" 4
  390. .IX Item "-protected"
  391. Include public or protected members of public classes in the output.
  392. This is the default.
  393. .IP "\fB\-package\fR" 4
  394. .IX Item "-package"
  395. Include public, protected and package-private members of public and
  396. package-private classes.
  397. .IP "\fB\-private\fR" 4
  398. .IX Item "-private"
  399. Include all classes and class members regardless of their access
  400. level.
  401. .IP "\fB\-splitindex\fR" 4
  402. .IX Item "-splitindex"
  403. Generate one index page per letter instead of a single, monolithic
  404. index page.
  405. .Sp
  406. By default, the index created by the Standard Doclet contains all
  407. entries on a single page. This is fine for small documentation sets,
  408. but for large sets you should specify this option.
  409. .IP "\fB\-nosince\fR" 4
  410. .IX Item "-nosince"
  411. Ignore \fB\f(CB@since\fB\fR tags in javadoc comments.
  412. .Sp
  413. By default, the generated output contains sections listing the version
  414. of your \s-1API\s0 since which the package, class or class member in question
  415. exists when this tag is encountered. Specify this option to omit this
  416. information.
  417. .IP "\fB\-notree\fR" 4
  418. .IX Item "-notree"
  419. Do not generate any tree pages.
  420. .Sp
  421. By default, the generated output includes one inheritance tree per
  422. package, and \- if the documentation set consists of multiple packages
  423. \&\- a page with the full inheritance tree. Specify this option to omit
  424. generation of these pages.
  425. .IP "\fB\-noindex\fR" 4
  426. .IX Item "-noindex"
  427. Do not output the alphabetical index.
  428. .Sp
  429. By default, gjdoc generates an alphabetical index of all program
  430. elements in the documentation set (packages, classes, inner classes,
  431. constructors, methods, and fields). Specify this option to omit this
  432. information.
  433. .IP "\fB\-nohelp\fR" 4
  434. .IX Item "-nohelp"
  435. Do not generate the help page.
  436. .Sp
  437. This option is currently ignored as the Standard Doclet doesn't
  438. provide a help page.
  439. .IP "\fB\-nodeprecated\fR" 4
  440. .IX Item "-nodeprecated"
  441. Do not output inline information about deprecated packages, classes or
  442. class members.
  443. .Sp
  444. By default, the Standard Doclet adds a highlighted paragraph with
  445. deprecation information to the description of each deprecated program
  446. element. Specify this option to omit this information.
  447. .IP "\fB\-nodeprecatedlist\fR" 4
  448. .IX Item "-nodeprecatedlist"
  449. Do not output the summary page for deprecated \s-1API\s0 elements.
  450. .Sp
  451. By default, the Standard Doclet generates a page listing all
  452. deprecated \s-1API\s0 elements along with a deprecation description which
  453. usually includes the reason for deprecation and possible
  454. alternatives. Specify this option to omit this information.
  455. .IP "\fB\-nonavbar\fR" 4
  456. .IX Item "-nonavbar"
  457. Do not output the navigation bar, header, and footer.
  458. .Sp
  459. By default, each output page is equipped with a top navigation bar
  460. (which may include a user-specified header) and a bottom navigation
  461. bar (which may include a user-specified footer). Specify this option
  462. to omit this decoration.
  463. .IP "\fB\-nocomment\fR" 4
  464. .IX Item "-nocomment"
  465. Omit all documentation text from the generated files and output only
  466. declarations and program element relationships.
  467. .Sp
  468. This option is here for compatibility with \fBjavadoc\fR. If you
  469. plan on extracting information about your project via \fBgjdoc\fR,
  470. you should consider using a different Doclet for your purposes
  471. instead, for example XmlDoclet. You could also use the Doclet \s-1API\s0
  472. directly by implementing a new Doclet.
  473. .IP "\fB\-linksource\fR" 4
  474. .IX Item "-linksource"
  475. Generate a page with syntax-highlighted source code for each class.
  476. By default, this page is not generated.
  477. .Sp
  478. The source code can be accessed by clicking on the button labelled
  479. \&\*(L"Source\*(R" in the navigation bar, or by clicking on the name of a
  480. constructor, field, method, or inner class in the detail section of a
  481. class documentation page.
  482. .IP "\fB\-use\fR" 4
  483. .IX Item "-use"
  484. Generate a page with cross-reference information. By default, this
  485. page is not generated.
  486. .Sp
  487. The cross-reference information can be accessed by clicking on the
  488. button labelled `Use' in the navigation bar.
  489. .Sp
  490. The `Use' page lists all classes/interfaces in the documentation set
  491. that extend/implement the class (type) in question; fields of the
  492. type; methods or constructors accepting a parameter of the type;
  493. methods returning the type; and methods or constructors throwing the
  494. type.
  495. .IP "\fB\-author\fR" 4
  496. .IX Item "-author"
  497. Include author information in the output.
  498. .Sp
  499. When specified, author information as specified using the
  500. \&\fB\f(CB@author\fB\fR tag in javadoc comments is incorporated into the
  501. output. By default, \fB\f(CB@author\fB\fR tags are ignored.
  502. .IP "\fB\-version\fR" 4
  503. .IX Item "-version"
  504. Include version information in the output.
  505. .Sp
  506. When specified, version information as specified using the
  507. \&\fB\f(CB@version\fB\fR tag in javadoc comments is incorporated into the
  508. output. By default, \fB\f(CB@version\fB\fR tags are ignored.
  509. .IP "\fB\-licensetext\fR" 4
  510. .IX Item "-licensetext"
  511. Assume that the first comment in each source file contains the license
  512. text, and add license information to the footer of each generated
  513. class page.
  514. .Sp
  515. This is an option specific to \fBgjdoc\fR and not compatible to
  516. Sun \fBjavadoc\fR.
  517. .Sp
  518. This option is intended for use with free and open source projects
  519. where source code is typically prefixed with a boilerplate license
  520. comment, when there are legal reasons for including the license in the
  521. documentation.
  522. .IP "\fB\-docfilessubdirs\fR" 4
  523. .IX Item "-docfilessubdirs"
  524. Recursively copy all files in the \fIdoc-files\fR sub-directory of each
  525. package directory.
  526. .Sp
  527. Usually, only the files in the \fIdoc-files\fR sub-directory are copied
  528. without descending recursively.
  529. .IP "\fB\-excludedocfilessubdir\fR \fIname\fR\fB:\fR\fIname\fR\fB:...\fR" 4
  530. .IX Item "-excludedocfilessubdir name:name:..."
  531. Do not copy some directories directly under the \fIdoc-files\fR
  532. sub-directories when descending recursively.
  533. .Sp
  534. The argument to this option should be a colon-separated list of
  535. directory names.
  536. .Sp
  537. This option only makes sense if \fB\-docfilessubdirs\fR is also
  538. specified. In this case, any sub-directory located directly beneath a
  539. \&\fIdoc-files\fR directory is omitted if listed.
  540. .Sh "Custom Documentation Tags"
  541. .IX Subsection "Custom Documentation Tags"
  542. .IP "\fB\-tagletpath\fR \fIpathlist\fR" 4
  543. .IX Item "-tagletpath pathlist"
  544. Search \fIpathlist\fR when loading subsequent Taglet classes specified
  545. using \fB\-taglet\fR.
  546. .Sp
  547. \&\fIpathlist\fR should be one or more paths to a directory or jar file,
  548. separated by your platform's path separator (usually \fB:\fR or
  549. \&\fB;\fR).
  550. .IP "\fB\-taglet\fR \fIclassname\fR" 4
  551. .IX Item "-taglet classname"
  552. Register a Taglet.
  553. .Sp
  554. \&\fIclassname\fR should be the fully-qualified name of a Java class
  555. implementing \fBcom.sun.tools.doclets.Taglet\fR.
  556. .Sp
  557. The Taglet classes will be loaded from the classpath specified using
  558. \&\fB\-tagletpath\fR, from the classpath specified using
  559. \&\fB\-classpath\fR and from the default classpath.
  560. .Sp
  561. See the documentation of \fBcom.sun.tools.doclets.Taglet\fR for
  562. further information.
  563. .Sp
  564. Note that for simple tags, there is also \fB\-tag\fR.
  565. .IP "\fB\-tag\fR \fItagspec\fR" 4
  566. .IX Item "-tag tagspec"
  567. Register a generic Taglet.
  568. .Sp
  569. The format of \fItagspec\fR must be \fB<tagname>:<flags>:\*(L"<taghead>\*(R"\fR.
  570. .Sp
  571. \&\fItagname\fR is the tag name to match, without the leading @ sign.
  572. .Sp
  573. \&\fIflags\fR is one or more of the following characters, where each
  574. character specifies a source code context in which the tag is to be
  575. recognized.
  576. .RS 4
  577. .IP "\fBa\fR" 4
  578. .IX Item "a"
  579. all contexts
  580. .IP "\fBc\fR" 4
  581. .IX Item "c"
  582. constructors
  583. .IP "\fBf\fR" 4
  584. .IX Item "f"
  585. fields
  586. .IP "\fBm\fR" 4
  587. .IX Item "m"
  588. methods
  589. .IP "\fBo\fR" 4
  590. .IX Item "o"
  591. overview
  592. .IP "\fBp\fR" 4
  593. .IX Item "p"
  594. packages
  595. .IP "\fBt\fR" 4
  596. .IX Item "t"
  597. types (classes, interfaces, exceptions, errors)
  598. .IP "\fBX\fR" 4
  599. .IX Item "X"
  600. special character which temporarily disables the
  601. Taglet altogether.
  602. .RE
  603. .RS 4
  604. .Sp
  605. \&\fItaghead\fR is the string to display in the header of the section
  606. devoted to the tag in question.
  607. .Sp
  608. For example, to define a tag matching \fB\f(CB@cvsid\fB\fR which is to be
  609. accepted in overview, package and type pages and which is labelled
  610. with the header \fB\s-1CVS\s0 \s-1ID\s0\fR, you would specify:
  611. .Sp
  612. .Vb 1
  613. \& \-tag cvsid:tpo:"CVS ID"
  614. .Ve
  615. .Sp
  616. Let's say that a class javadoc comment contains
  617. .Sp
  618. .Vb 1
  619. \& @cvsid $Id: cp\-tools.texinfo,v 1.9 2012\-03\-07 15:27:27 gnu_andrew Exp $
  620. .Ve
  621. .Sp
  622. Then the \s-1HTML\s0 output will contain something like
  623. .Sp
  624. .Vb 2
  625. \& CVS ID:
  626. \& $Id: cp\-tools.texinfo,v 1.9 2012\-03\-07 15:27:27 gnu_andrew Exp $
  627. .Ve
  628. .RE
  629. .Sh "Running Other Doclets"
  630. .IX Subsection "Running Other Doclets"
  631. .IP "\fB\-docletpath\fR \fIpathlist\fR" 4
  632. .IX Item "-docletpath pathlist"
  633. Search \fIpathlist\fR when loading classes for the Doclet specified
  634. using \fB\-doclet\fR.
  635. .Sp
  636. \&\fIpathlist\fR should be one or more paths to a directory or jar file,
  637. separated by your platform's path separator (usually \fB:\fR or
  638. \&\fB;\fR).
  639. .IP "\fB\-doclet\fR \fIclassName\fR" 4
  640. .IX Item "-doclet className"
  641. Run the specified doclet instead of the standard HtmlDoclet.
  642. .Sp
  643. \&\fIclassName\fR should be the fully-qualified name of a class which
  644. has a public default constructor and contain a method with the
  645. following signature:
  646. .Sp
  647. .Vb 2
  648. \& import com.sun.javadoc.RootDoc;
  649. \& public static boolean start(RootDoc rootDoc)
  650. .Ve
  651. .Sp
  652. The Doclet classes will be loaded from the classpath specified using
  653. \&\fB\-docletpath\fR, from the classpath specified using
  654. \&\fB\-classpath\fR and from the default classpath.
  655. .Sp
  656. The \fBstart\fR method should process the information exposed by the
  657. Doclet \s-1API\s0 via \fBrootDoc\fR and return \fBtrue\fR on success,
  658. \&\fBfalse\fR on failure.
  659. .Sp
  660. If you are using a third-party doclet, refer to its documentation for
  661. further instructions. Note that support for third-party doclets is
  662. experimental. Please report any problems you encounter, or provide
  663. feedback when successfully running third-party applets.
  664. .Sp
  665. This option can be specified multiple times, in which case all doclets
  666. are executed with the same information tree exposed via the Doclet \s-1API\s0
  667. for each Doclet run.
  668. .Sh "Adding Information to the Output"
  669. .IX Subsection "Adding Information to the Output"
  670. .IP "\fB\-windowtitle\fR \fItext\fR" 4
  671. .IX Item "-windowtitle text"
  672. Use \fItext\fR as the browser window title prefix.
  673. .Sp
  674. When specified, the browser window title for each page will be
  675. prefixed with \fItext\fR instead of the default string \fBGenerated
  676. \&\s-1API\s0 Documentation\fR.
  677. .Sp
  678. \&\fItext\fR should be plain text (it should not contain \s-1HTML\s0 tags).
  679. .IP "\fB\-doctitle\fR \fItext\fR" 4
  680. .IX Item "-doctitle text"
  681. Set the header text of the overview page to \fItext\fR.
  682. .Sp
  683. \&\fItext\fR should be a short plain text string.
  684. .Sp
  685. When generating documentation for a single package, specifying this
  686. option forces generation of the overview page.
  687. .IP "\fB\-header\fR \fIhtmltext\fR" 4
  688. .IX Item "-header htmltext"
  689. Add \fIhtmltext\fR to the right upper corner of every generated page.
  690. \&\fIhtmltext\fR is usually set to the name of the project being
  691. documented.
  692. .IP "\fB\-footer\fR \fIhtmltext\fR" 4
  693. .IX Item "-footer htmltext"
  694. Add \fIhtmltext\fR to the right bottom corner of every generated page.
  695. \&\fIhtmltext\fR is often set to the same value as for \fB\-header\fR.
  696. .IP "\fB\-bottom\fR \fIhtmltext\fR" 4
  697. .IX Item "-bottom htmltext"
  698. Add \fIhtmltext\fR to the very bottom of every generated page,
  699. spanning the whole width of the page. When specified, \fIhtmltext\fR
  700. usually consists of a copyright notice and/or links to other project
  701. pages.
  702. .IP "\fB\-addstylesheet\fR \fIfile\fR" 4
  703. .IX Item "-addstylesheet file"
  704. Augment the default \s-1CSS\s0 style sheets with the user-specified
  705. stylesheet \fIfile\fR.
  706. .Sp
  707. The given stylesheet is simply loaded by each \s-1HTML\s0 page in addition to
  708. the default ones, as the last stylesheet.
  709. .Sp
  710. Note that the \s-1CSS\s0 cascading rules apply. That is, your style
  711. properties will only be assigned if they have a higher cascading order
  712. than \fBgjdoc\fR's default style. One simple way to make sure
  713. that this is the case is to declare your overrides \fB!important\fR.
  714. .Sp
  715. See <\fBhttp://www.w3.org/TR/REC\-CSS2/cascade.html#cascading\-order\fR>.
  716. .IP "\fB\-group\fR \fIheading\fR\fB \fR\fIpkgwildcard\fR\fB:\fR\fIpkgwildcard\fR\fB:...\fR" 4
  717. .IX Item "-group heading pkgwildcard:pkgwildcard:..."
  718. Arrange the given packages in a separate group on the overview page.
  719. .Sp
  720. The first argument should be a short plain text which is used as the
  721. title of the package group. The second argument should be a
  722. colon-separated list of package wildcards. The group will consist of
  723. all packages in the documentation set whose name matches any of the
  724. given wildcards.
  725. .Sp
  726. There is only one wildcard character, \fB*\fR, which matches both
  727. letters in package name components and the \fB.\fR separating package
  728. name components. For example, \fBj*regex\fR would match package
  729. \&\fBjava.util.regex\fR. A more useful example would be
  730. \&\fBjavax.swing*\fR to match \fBjavax.swing\fR and all of its
  731. sub-packages.
  732. .Sp
  733. This option can be given multiple times.
  734. .Sp
  735. \&\s-1FIXME:\s0 Information about group nesting here.
  736. .Sp
  737. .Vb 5
  738. \& gjdoc \-group "Core Classes" \*(Aqjava*\*(Aq \e
  739. \& \-group "Swing" \*(Aqjavax.swing*\*(Aq \e
  740. \& \-group "XML APIs" \*(Aqjavax.xml*\*(Aq \e
  741. \& \-group "Other Extensions" javax* \e
  742. \& ...
  743. .Ve
  744. .IP "\fB\-overview\fR \fIfile\fR" 4
  745. .IX Item "-overview file"
  746. Add the \s-1XHTML\s0 body fragment from \fIfile\fR to the overview page.
  747. .Sp
  748. \&\fIfile\fR should contain an \s-1XHTML\s0 fragment with the \s-1HTML\s0 \fBbody\fR
  749. tag as the root node.
  750. .Sp
  751. This option can be used to supply a description of the documentation
  752. set as a whole.
  753. .Sp
  754. When specified, the first sentence of the fragment will be put above
  755. the tables listing the documented packages, along with a link to the
  756. full copy of the fragment which is put below the tables.
  757. .Sp
  758. When generating documentation for a single package, specifying this
  759. option forces generation of the overview page.
  760. .IP "\fB\-stylesheetfile\fR \fIfile\fR" 4
  761. .IX Item "-stylesheetfile file"
  762. Use the \s-1CSS\s0 stylesheet in \fIfile\fR instead of the default \s-1CSS\s0
  763. stylesheets.
  764. .Sp
  765. If you only want to override parts of the default stylesheets, use
  766. \&\fB\-addstylesheet\fR instead.
  767. .IP "\fB\-title\fR \fItext\fR" 4
  768. .IX Item "-title text"
  769. \&\fIDeprecated.\fR Use \fB\-doctitle\fR \fItext\fR instead.
  770. .IP "\fB\-helpfile\fR \fIfile\fR" 4
  771. .IX Item "-helpfile file"
  772. This option is currently ignored.
  773. .Sp
  774. When implemented, it will use the \s-1XHTML\s0 fragment in \fIfile\fR for the
  775. help page contents instead of the default help text.
  776. .Sh "Controlling the Output."
  777. .IX Subsection "Controlling the Output."
  778. .IP "\fB\-d\fR \fIdirectory\fR" 4
  779. .IX Item "-d directory"
  780. Place all output files into \fIdirectory\fR (and
  781. sub-directories). \fIdirectory\fR will be created if it does not
  782. exist, including all non-existing parent directories and all required
  783. sub-directories.
  784. .Sp
  785. If not specified, output will be placed into the current directory.
  786. .IP "\fB\-locale\fR \fIname\fR" 4
  787. .IX Item "-locale name"
  788. Use locale \fIname\fR instead of the default locale for all purposes.
  789. .Sp
  790. \&\fIname\fR should be a locale specifier in the form \fBll_CC[_VAR]\fR
  791. where \fBll\fR is a lowercase two-letter \s-1ISO\-639\s0 language code,
  792. \&\fB\s-1CC\s0\fR is an optional uppercase two-letter \s-1ISO\-3166\s0 country code,
  793. and \fB\s-1VAR\s0\fR is an optional variant code. For example, \fBen\fR
  794. specifies English, \fBen_US\fR specifies \s-1US\s0 English, and
  795. \&\fBen_US_WIN\fR specifies a deviant variant of the \s-1US\s0 English locale.
  796. .Sp
  797. Note that the semantics of this option correspond exactly to those of
  798. the constructors of class \fBjava.util.Locale\fR.
  799. .Sp
  800. This option currently only determines which Collator is being used for
  801. sorting output elements. This means that the locale will only have an
  802. effect when you are using non-ASCII characters in identifiers.
  803. .IP "\fB\-charset\fR \fIcharset\fR" 4
  804. .IX Item "-charset charset"
  805. \&\fIDeprecated.\fR Override the specified encoding in output \s-1XHTML\s0
  806. files with the one given by \fBcharset\fR.
  807. .Sp
  808. If this option is not given, the encoding specification in output
  809. \&\s-1XHTML\s0 is chosen to match the encoding used when writing the file (the
  810. encoding given with \fB\-docencoding\fR, or your platform's default
  811. encoding).
  812. .Sp
  813. The semantics for \fIcharset\fR are specified here:
  814. <\fBhttp://www.w3.org/TR/2000/REC\-xml\-20001006#NT\-EncName\fR>. For
  815. all practical purposes, they are identical to those of the other
  816. options accepting charset parameters.
  817. .Sp
  818. This option is here for compatibility with \fBjavadoc\fR and
  819. should be avoided.
  820. .IP "\fB\-docencoding\fR \fIcharset\fR" 4
  821. .IX Item "-docencoding charset"
  822. Use the given charset encoding when writing output files instead of
  823. your platform's default encoding.
  824. .Sp
  825. Examples for \fIcharset\fR are \fBUS-ASCII\fR, \fB\s-1ISO\-8859\-1\s0\fR or
  826. \&\fB\s-1UTF\-8\s0\fR.
  827. .Sp
  828. The semantics of this option correspond exactly to those of the
  829. constructors of class \fBjava.util.Locale\fR.
  830. .IP "\fB\-validhtml\fR" 4
  831. .IX Item "-validhtml"
  832. Force generation of valid \s-1XHTML\s0 code. This breaks compatibility to
  833. the traditional Javadoc tool to some extent.
  834. .Sp
  835. If this option is specified, anchor names will be mangled so that they
  836. are valid according to the \s-1XHTML\s0 1.1 specification. However, a
  837. documentation set generated with this option cannot be linked to
  838. properly using the traditional Javadoc tool. It can be linked to just
  839. fine using Gjdoc, though.
  840. .Sp
  841. Without this option, anchor names for executable class members use the
  842. traditional format, for example: \*(L"foo(String,int[])\*(R". This is
  843. compatible to the traditional Javadoc tool, but according to both the
  844. \&\s-1HTML\s0 4.0 and \s-1XHTML\s0 1.0 and 1.1 specifications, this format includes
  845. illegal characters. Parentheses, square brackets, and the comma are
  846. not allowed in anchor names.
  847. .IP "\fB\-baseurl\fR \fIurl\fR" 4
  848. .IX Item "-baseurl url"
  849. Hardwire a page \s-1URL\s0 relative to \fIurl\fR into each generated page.
  850. .Sp
  851. If you are generating documentation which will exclusively be
  852. available at a certain \s-1URL\s0, you should use this option to specify this
  853. \&\s-1URL\s0.
  854. .Sp
  855. This can help avoid certain redirect attacks used by spammers, and it
  856. can be helpful for certain web clients.
  857. .Sh "Verbosity Options"
  858. .IX Subsection "Verbosity Options"
  859. .IP "\fB\-quiet\fR" 4
  860. .IX Item "-quiet"
  861. Suppress all output except for warnings and error messages.
  862. .IP "\fB\-verbose\fR" 4
  863. .IX Item "-verbose"
  864. Be very verbose about what \fBgjdoc\fR is doing.
  865. .Sp
  866. This option is currently ignored.
  867. .Sh "Virtual Machine Options"
  868. .IX Subsection "Virtual Machine Options"
  869. Sun's \fBjavadoc\fR tool seems to be based on \fBjavac\fR and
  870. as such it seems to operate on the \s-1VM\s0 level. \fBgjdoc\fR, in
  871. contrast, is a pure Java application.
  872. .PP
  873. Therefore, \fBgjdoc\fR can only fake, or simulate, the following
  874. VM-level options.
  875. .IP "\fB\-classpath\fR \fIpathlist\fR" 4
  876. .IX Item "-classpath pathlist"
  877. Set the Virtual Machine \fBclasspath\fR to \fIpathlist\fR.
  878. .Sp
  879. In most cases you should use \fB\-docletpath\fR or
  880. \&\fB\-tagletpath\fR instead of this option.
  881. .Sp
  882. \&\fIpathlist\fR should be one or more paths to a directory or jar file,
  883. separated by your platform's path separator (usually \fB:\fR or
  884. \&\fB;\fR).
  885. .Sp
  886. If this option is not intercepted at the wrapper level,
  887. \&\fBgjdoc\fR currently fakes it by calling
  888. \&\fBSystem.setProperty(\*(L"java.class.path\*(R",\fR \fIpathlist\fR\fB);\fR and
  889. outputs a warning.
  890. .IP "\fB\-bootclasspath\fR \fIpathlist\fR" 4
  891. .IX Item "-bootclasspath pathlist"
  892. Set the Virtual Machine \fBbootclasspath\fR to \fIpathlist\fR.
  893. .Sp
  894. If this option is not intercepted at the wrapper level,
  895. \&\fBgjdoc\fR outputs a warning.
  896. .IP "\fB\-J\fR\fIvmopt\fR" 4
  897. .IX Item "-Jvmopt"
  898. Pass an arbitrary parameter to the Virtual Machine \fBgjdoc\fR
  899. runs on.
  900. .Sp
  901. If this option is not intercepted at the wrapper level,
  902. \&\fBgjdoc\fR tries to emulate the option and outputs a warning.
  903. .Sp
  904. Currently, only the \s-1VM\s0 option \fB\-D\fR for setting system
  905. properties is emulated.
  906. .SH "BUGS"
  907. .IX Header "BUGS"
  908. Please report bugs to <\fBhttp://savannah.gnu.org/bugs/?group=classpath\fR>.
  909. .SH "SEE ALSO"
  910. .IX Header "SEE ALSO"
  911. Info entry for \fIgjdoc\fR.
  912. .SH "AUTHOR"
  913. .IX Header "AUTHOR"
  914. Julian Scheid