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
2
votes
0 answers

Maven Plugin documentation Goals with a read more-link?

Is there a way to shorten the text which is shown on the Maven plugin documentation Page under the point Usage? I wrote a long Mojo-description and i do not wan't to show it all on the first usage page. So is there a way to add something like a…
kdoteu
  • 1,527
  • 1
  • 20
  • 26
2
votes
1 answer

How to make javadoc doclava doclet works with gradle

I am building a project with gradle using java plugin and I want also to build javadoc using doclava doclet Here is the relevant part of the module's build.gradle apply plugin: 'java' javadoc { source = sourceSets.main.allJava ... …
gabocalero
  • 473
  • 6
  • 15
2
votes
1 answer

Java Doclet API change for jdk 8

I am a newbie to Java. I was trying to upgrade to jdk 1.8 and found the following errors on doing a "gradle test": /u01/sv/home/sv900t1/sv_test/Test_Suites/SeleniumLibraries/src/main/java/com/csgi/svtest/selenium/CustomWriter.java:57: error: cannot…
Swarna Gowri
  • 277
  • 2
  • 10
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
  • 649
  • 8
  • 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
  • 55,468
  • 181
  • 466
  • 756
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
  • 5,089
  • 5
  • 37
  • 50
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,612
  • 3
  • 42
  • 62
1
vote
1 answer

Getting "java: package com.sun.javadoc does not exist" while building the project in IntelliJ

Hii I have been facing error while building the project in IntelliJ. My laptop is MacBook M1 Pro. My Java version is "11.0.14" and my language level is 11. When I build this in intellij it fails with this error saying "java: package com.sun.javadoc…
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
  • 984
  • 7
  • 19
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
  • 747
  • 14
  • 31
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
  • 620
  • 6
  • 13
1
vote
2 answers

how to set classpath properly in maven-javadoc-plugin?

I had a customized java doclet, it will call newInstance() on some classes: clazz.newInstance() When I ran it in Eclipse as Junit, it works well. But When I ran it in maven , it throws an exception: NoClassDefFoundError I checked that class, it is…
Justin
  • 1,050
  • 11
  • 26
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
  • 1,050
  • 11
  • 26
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 =…