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
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,864
  • 8
  • 40
  • 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
  • 674
  • 8
  • 25
1
vote
0 answers

How could I generate a customized javadoc of a class, package ... to pdf in eclipse or something in maven?

How could I generate a customized javadoc of a class, package ... to pdf in eclipse or something in maven? org.apache.maven.plugins maven-javadoc-plugin 2.10.2
Duc Hoang
  • 45
  • 1
  • 1
  • 7
1
vote
1 answer

Javadoc layout changed with JDK8

Javadoc generated by the JDK8 is completely different compate to that of JDK7. In new Javadoc, header text is overlapping and layout completely messy. I understand after reading Oracle documentation that Doclet is reason for creating html view of…
Sreedhar GS
  • 2,694
  • 1
  • 24
  • 26
1
vote
0 answers

Change Android Studio doclet version

I need to generate the javadoc for a Library in Android Studio. The problem is that, when I start to create the doc, I see the following logs: Constructing Javadoc information... Standard Doclet version 1.8.0_31 Building tree for all the packages…
Massimo
  • 3,436
  • 4
  • 40
  • 68
1
vote
0 answers

How can one set javadoc options in a wrapper of the standard doclet?

The UMLGraph doclet UmlGraphDoc first runs the standard Java doclet with code like the following: public static boolean start(RootDoc root) { com.sun.tools.doclets.standard.Standard.start(root); and then modifies the result to add UML class…
Diomidis Spinellis
  • 18,734
  • 5
  • 61
  • 83
1
vote
2 answers

Java XHTML Doclet: fatal exception

Has anyone used XHTML Doclet, and can you provide some hints as to how to get it to work successfully? I run it like this: \sunjdk\bin\javadoc -doclet net.sourceforge.xhtmldoclet.Doclet -docletpath c:\sw\java\XHTML_Doclet_0.4.jar -d…
Cheeso
  • 189,189
  • 101
  • 473
  • 713
1
vote
2 answers

How to specify a different version of the Standard DocLet in Maven?

Background: I have a project that compiles fine with maven in a machine with java 1.7.0, but the javadoc compilation fails in another machine, which has java 1.8.0. From the log of maven, I can see that one is using the "Standard DocLet version…
Eduardo Bezerra
  • 1,923
  • 1
  • 17
  • 32
1
vote
1 answer

Running the Standard Doclet Programmatically

Theoretically it should be possible to run the javadoc generation process from a Java programm itself (as described here http://docs.oracle.com/javase/7/docs/technotes/guides/javadoc/standard-doclet.html#runningprogrammatically). I took the programm…
leo
  • 3,677
  • 7
  • 34
  • 46
1
vote
2 answers

How can I compile and run my Custom Doclet class in my project?

I'm trying to dump all class javadoc comment (preferabbly subclasses of a libraries WebPage class) at compile time into a .properties file in the format classname=comment. So far I have: created doclet class SiteMapDoclet the class is defined to…
Raystorm
  • 6,180
  • 4
  • 35
  • 62
1
vote
1 answer

Java docs that include classes based on inheritance

Note that I have written "Java docs", as I'm not necessarily expecting the javadoc utility to acheive what I'm after (let alone the maven-javadoc-plugin I'm using). I need to produce a doc site that includes only classes that extends/implements a…
RCross
  • 4,919
  • 4
  • 44
  • 42
1
vote
1 answer

Gradle with javadoc doclet : error - invalid flag: -doctitle when runnning my doclet task

I am running my next gradle-javadoc-doclet task: apply plugin: com.myproject.build.gradle.web.WebPlugin apply plugin: 'java' apply from: 'dependencies.gradle' group = 'com.myproject' sourceCompatibility = 1.6 targetCompatibility = 1.6 jar.enabled…
raspayu
  • 5,089
  • 5
  • 37
  • 50
1
vote
1 answer

javadoc doclet: how to get the attributes from a class

I am playing with the Doclets, and I am running into the next problem. I want to get the attributes from a class, and I thought the parameter method would help. My code looks like the next one(I am doing that for the return type of a method): …
raspayu
  • 5,089
  • 5
  • 37
  • 50
1
vote
1 answer

javado Doclet enum - How to get possible values from an enum to use in my own doclet?

When using javadoc, enums are usually documented like that: /** * Doc for enum */ public enum Something { /** * First thing */ FIRST_THING, /** * Second thing */ SECOND_THING; } My problem is that, using JavaDoc Doclets, I can get…
raspayu
  • 5,089
  • 5
  • 37
  • 50
0
votes
0 answers

Is it possible to find the imported classes with the current JavaDoc APIs?

I've been working on a custom Javadoc doclet using the current doclet APIs. Having encountered a ReferenceTree for a link, let's say jdk.javadoc.doclet.Doclet#init(Locale, Reporter), I need to work out what classes Locale and Reporter correspond to.…
Norm
  • 866
  • 1
  • 7
  • 16