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.

83 questions
2
votes
0 answers

Swagger jaxrs Doclet custom annotations not generating output

I'm using the very helpful swagger-jaxrs-doclet tool from teamcarma to generate the json files necessary to feed into a swagger-ui front end for documenting my RESTful services. An issue that I'm having is that the custom annotations (e.g. @bodyType…
Ollie
  • 91
  • 1
  • 9
2
votes
1 answer

Is it possible to generate a mock implementation based on static swagger service.json?

I am generating the swagger service.json and other resource.jsons during the maven build cycle via the Carma swagger-jaxrs-doclet. Afterwards, I deploy the artifacts, together with swagger-ui on a webserver, and I can consult the generated…
davidcyp
  • 609
  • 7
  • 18
2
votes
3 answers

Vague IOException when running Javadoc with special doclet

This might be a doclet-implementation-specific question, but I believe its really a JavaDoc configuration issue I'm dealing with here. I'm trying to get the yDoc UML Doclet to work so that it will generate UML diagrams for my Java app as part of the…
IAmYourFaja
  • 50,141
  • 159
  • 435
  • 728
2
votes
1 answer

Javadoc doclet : Get "@Nullable" annotation (javax). How to get that annotation in the doclet?

I am creating my own doclet, and I need to show when a parameter from a method is nullable or not. For that, I want to use the @Nullable annotation from javax.annotation. Somthing like what the people of Google say here: public Object…
raspayu
  • 4,779
  • 5
  • 32
  • 46
1
vote
1 answer

How can I retrieve the output of a programmatically invoked Javadoc doclet from the caller?

I am writing a tool to scrape Javadoc from pre-existing Java source files and preprocess it via a custom doclet (the specifics of the processing are not relevant). I have written the doclet, and I'm able to invoke the doclet from my code via the…
scorpiodawg
  • 5,202
  • 3
  • 38
  • 52
1
vote
0 answers

How to use different doclets in one project? (maven plugin javadoc)

In a codebase that is documented in JavaDoc currently we'd like to transition to a Markdown-based documentation. There exist doclets to parse Markdown documentation comments. However, it is not feasible to rewrite all doc comments in an enterprise…
A Sz
  • 859
  • 7
  • 17
1
vote
1 answer

How to test Java 9+ doclet without mocking Doclet API?

I have written a Doclet using Java 9+. I would like to test it using JUnit framework without mocking the Doclet API. Any good way of proceeding?
Abbadon
  • 1,951
  • 21
  • 28
1
vote
0 answers

Custom doclet in a maven project - invalid flag

I am trying to generate javadoc on my maven project. I am using Java 1.8, and have written a small doclet project. The pom on my project has - org.apache.maven.plugins
user2689782
  • 697
  • 10
  • 26
1
vote
1 answer

What is the alternative of com.sun.tools.javadoc.Main.execute to run Doclet in jdk 11?

I am using JDK 11 on Apache netbeans 10. The main method is depricated since java 9 and marked for a removal where there is no alternative All of my attempts in command line ended up with javadoc: error - Cannot find doclet class Exception When I…
TiyebM
  • 2,234
  • 2
  • 25
  • 50
1
vote
3 answers

Is Sun Xml doclet still available?

I am looking for a doclet that can generate javadoc in xml format instead of the default html. After some search, I found there was a Sun XML doclet, previously located at http://www.sun.com/xml/developers/doclet/ However this link no longer works,…
qichuan
  • 640
  • 6
  • 13
1
vote
2 answers

Couldn't compile a java doclet program, getting package com.sun.javadoc does not exist

I'm trying to write a simple Java doclet program where it uses com.sun.javadoc package. And I also imported the tools.jar as a dependency for the project. And I can run the application without a problem and the desired results can be obtained. But…
prime
  • 11,246
  • 11
  • 75
  • 112
1
vote
1 answer

How to add multiple sourcepath to a doclet on windows?

I created a doclet, it will scan two projects(project A depend on project B) So I have to add two sourcepath. Based on doclet docs, I have to use colon to separate multiple source folder: Colon-separated list of source-file directories, like…
Justin
  • 714
  • 5
  • 22
1
vote
0 answers

javadoc doclet: how to get enum contant fields

I need get field values of enum constant. For example I have this enum: public enum TestEnum { AAA("text 1", 10), BBB("text 2", 20); private final String text; private final int weight; TestEnum(String text, int weight) { this.text =…
1
vote
0 answers

Gradle Javadoc plugin custom task with Doclava invalid flag -link

I am adding my custom gradle task in my libraries build.gradle with Doclava implementation as: android.libraryVariants.all { variant -> task("generateNew${variant.name.capitalize()}Javadoc", type: Javadoc) { title = "" destinationDir =…
aman.nepid
  • 2,626
  • 8
  • 37
  • 48
1
vote
1 answer

Packaging custom javadoc doclet with maven

I've written my own java doclet and want to package it into a single jar file to use it later on. I'm currently using maven with these settings to generate it: Doclet
codewing
  • 586
  • 5
  • 21