To use the JavaFX doclet you can add the following snippet to the pluginManagement section of your parent POM of your JavaFX project:
The JavaFX Doclet tutorial provides addtional information about the doclet.
Note that at the time of writing the tutorial mentions the outdated package name com.javafx.lib.doclets.formats.html.HtmlDoclet.
I already sent a feedback and asked Oracle to update the tutorial.
As the tutorial mentions, you can add the Javadoc to the private properties fields and it will generate the Javadoc for the property-method as well as for the getter and setter methods. To make this work you have to use
Alternatively it also seems to work when you add the Javadoc to the property-method (the Javadoc for the getter and setter method will be generated as well).
As this doclet doesn't seem to generate any Javadoc for any private-members (such as non-property-fields and -methods) even with <show>private</show>, the two options seem to be equivalent
Is the doclet still needed in Java 8u20? Because I can not see the doclet jar file anymore.
ReplyDeleteSince Java SE 8 you don't need the Doclet anymore, but you still need the additionalparam "-javafx".
ReplyDelete