13.07.2015 Views

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

126Chapter 5The Sun Microsystems Java Software <str<strong>on</strong>g>Development</str<strong>on</strong>g> Kit-verbose and -quietThese switches c<strong>on</strong>trol how much output is produced as javadoc runs. Ifyou choose -verbose, detailed informati<strong>on</strong> is produced (more than thedefault; in current versi<strong>on</strong>s, this opti<strong>on</strong> mostly shows time measurementsof the parsing of each source file). If you choose the -quiet opti<strong>on</strong>,progress messages are suppressed completely.-doclet starting_classWe’re not going to go into too much detail <strong>on</strong> this, but this switch allowsyou to name a doclet (a class that uses the Doclet API) to use in place ofthe default doclet. See the next paragraph for more informati<strong>on</strong>.All of the switches documented so far are provided by the javadoc programitself. Javadoc, like the rest of the Sun Microsystems Java SDK, is written inJava. The authors of javadoc took advantage of this. The default behavior ofjavadoc is to produce HTML documentati<strong>on</strong> with a standard look and feel.However, there exists an API, called the Doclet API, which allows you to writea Java class of your own to process the informati<strong>on</strong> parsed out of the source byjavadoc. For details, see the Doclet Overview 3 <strong>on</strong> Sun’s Web site.Sun provides a default doclet that produces HTML documentati<strong>on</strong>. Thatdoclet takes a number of command-line opti<strong>on</strong>s as well. We’ll cover the mostimportant of those now. Remember, these are provided by the standard doclet.If you use the -doclet switch, then these switches will not be available (unless,of course, the alternate doclet just happens to provide them).-d directoryBy default, the HTML documentati<strong>on</strong> is saved in the same directory asthe source. Use this switch to specify an alternate directory into whichdocumentati<strong>on</strong> is to be placed.-useCauses javadoc to generate a “Use” page for each class and package. Sucha page is a cross-reference to all uses of the class or package.-versi<strong>on</strong>Causes any @versi<strong>on</strong> tag data to be included in the documentati<strong>on</strong>. Ifyou are using CVS for source c<strong>on</strong>trol (and why wouldn’t you?) we3. http://java.sun.com/j2se/1.4.1/docs/tooldocs/javadoc/overview.html

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!