my dog learned polymorphism*
The moose likes Java in General and the fly likes debug custom doclet in javadoc Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "debug custom doclet in javadoc" Watch "debug custom doclet in javadoc" New topic
Author

debug custom doclet in javadoc

Ven B
Greenhorn

Joined: Apr 26, 2003
Posts: 2
I am writing a custom doclet. When i run javadoc I specify the custom docket using
javadoc -doclet <customdocletname>
Is there any way to debug the custom doclet?
When javadoc is run under some debugging mode either using JDB or some means I should be able to put break points in the custom doclet class.
Thanks
Ven B
Ven B
Greenhorn

Joined: Apr 26, 2003
Posts: 2
I found the answer
To debug custom doclet in your editor use
String[] args = new String[] {"-doclet","fullyQualified Custom Doclet Classname","java file names as input"};
com.sun.tools.javadoc.Main.main(args);
I found this on sun javadoc forum:
http://forum.java.sun.com/thread.jsp?forum=41&thread=142604
Michael Morris
Ranch Hand

Joined: Jan 30, 2002
Posts: 3451
Hi Ven,
Welcome to JavaRanch, the absolute best site on the www for Java information. We don't have many rules around here, but we do have one. Please change your display name to a first and last name to comply with the JavaRanch Naming Policy. You can change it here. Thank you for your cooperation.


Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: debug custom doclet in javadoc