A new enhanced doclet (written by Gerald Boersma) is now available.
It has much more option than the legacy previous one. You will find detailed instructions here.doc-files
directory to the javadoc . (see How to Write Doc Comments for the Javadoc Tool). You can take advantage of this feature like this: package net.demo1;
/**
* Demonstration for PlantUML.
* <p>
* Example of use:
* <p>
* <img src="doc-files/image1.png">
*/
/*
* @startuml doc-files/image1.png
* Bob -> Alice : hello
* Alice --> Bob : OK
* @enduml
*/
public class Demo1 {
}
If you run PlantUML before the Javadoc, it will generate image1.png
in the directory doc-files
. Then, when you launch the Javadoc tool, you will have the following result: