Questions tagged [doclet]

Doclet programs work with the Javadoc tool to generate documentation from code written in Java.

Doclet programs work with the Javadoc tool to generate documentation from code written in Java.

source Wikipedia.

85 questions
0
votes
1 answer

Generate additional artifact while creating reports or in another phase?

I understand that you can create only one artifact from one pom in maven. I wrote a javadoc doclet that creates an html report of my artifact (my-rest-api). This doclet can also create stub requests and models for writing integration tests. My…
Jan
  • 2,803
  • 6
  • 36
  • 57
0
votes
1 answer

Extract source comments from a Scala source file

I would like to programmatically extract the code comments from a Scala source file. I have access to both the source file and objects of the classes whose comments I am interested in. I am also open to writing the comments in the Scala source file…
skm
  • 11
0
votes
2 answers

Why can't i import the jdk.javadoc.doclet package?

I wanted to make a custom doclet for JavaDoc and i initially tried to use the com.sun.javadoc package for this application. I was successfully able to create a doclet and use it with JDK8, but doing this with JDK12 gives me a warning that this…
Nalin Angrish
  • 317
  • 5
  • 17
0
votes
1 answer

Show part of method body in documentation

I want to show part of method body in its documentation (JavaDoc). For example: /** * The algorithm contains steps: * @showMethodBody */ public void algorithmX(int coordinateX) { makeStep1(); if (coordinateX == TOP) { …
jsosnowski
  • 1,560
  • 3
  • 26
  • 56
0
votes
1 answer

Maven: Dependency-driven javadoc aggregation and custom doclet

I've prepared a very simple demo of what I would like to do in much bigger scale to demonstrate the issue: Configuration: java 1.8, maven 3.3.9, maven-javadoc-plugin 3.0.1 I've got maven artifacts testA, testB and testC. Component testA is a javadoc…
0
votes
1 answer

Are there doclets available for embedding Graphviz DOT code in Javadoc?

After some searching, I have found a lot of doclets, Maven plugins, etc. which automatically generate UML class diagrams using Graphviz. However, I am looking for a doclet which I can use to embed my own DOT code in my Javadoc, primarily for…
scottysseus
  • 1,922
  • 3
  • 25
  • 50
0
votes
0 answers

Loading resources from classpath in custom Doclet

I wrote custom Doclet implementation and I run it with Maven javadoc: false src/main/resources
Kamil Z
  • 30
  • 1
  • 5
0
votes
1 answer

Read javax annotations with custom doclet

I got a bunch of DTO's which are not commented at all. However, there are comments in the SQL-Database. I can get these comments by sending a query and then retrieving the ResultSet. My task is to create a javadoc-API (as HTML) with the comments…
Vulkanos
  • 193
  • 19
0
votes
1 answer

Can I generate Javadoc comments with the help of a custom doclet?

What I mean by comment: /** *My Comment from database */ My Problem: I got a bunch of DTO's which are not commented at all. However, there are comments in the SQL-Database. I can get these comments by sending a query and then retrieving the…
Vulkanos
  • 193
  • 19
0
votes
1 answer

Add logo to javadoc to top left corner using doclava

I am trying to generate javadoc using doclava and need to add logo/image to top left corner of javadoc. I could manage to add project name but struggling with logo. task generateJavadoc(type: Javadoc) { title = null ext.assetsDir =…
user11016
  • 171
  • 7
0
votes
1 answer

Swagger UI shows a wrong status code for a JAX-RS resource

I have a very simple delete method: /** * Delete the question with the specified id * * @return a 204 NO CONTENT on success or a 404 NOT FOUND if there is no question available * @successResponse 204 The question was…
McPringle
  • 1,939
  • 2
  • 16
  • 19
0
votes
1 answer

javadoc doclet and static results in NoClassDefFoundError

import com.sun.javadoc.*; import org.apache.log4j.Logger; public class ListClass { public static final Logger log = Logger.getLogger("ListClass"); public static boolean start(RootDoc root) { ClassDoc[] classes = root.classes(); …
jpllosa
  • 2,066
  • 1
  • 28
  • 30
0
votes
1 answer

How to add product name and logo?

In the JDK javadoc, on the left panel above all-classes, there is a product name like: Java™ Platform Standard Ed. 7 It is also in the header and footer of every page. How to add product name in javadoc in every page? How to add logo in page…
eastwater
  • 4,624
  • 9
  • 49
  • 118
0
votes
1 answer

Doclet: firstSentence is null

I'm doing some experiments with Doclets. I'm using Java 7 and Maven. My pom.xml is:
Betlista
  • 10,327
  • 13
  • 69
  • 110
0
votes
1 answer

-doclet is not recognized as an internal or external command

I'm trying to do some tutorials for XHTML Doclet which use the command line but it does not recognize the command '-doclet' I'm not very familiar with the command line to begin with so I am not sure how to precede from here. Is there a file I need…
user2107967