Need some good examples on how to write a Doclet (scaladoc)
227 views
Skip to first unread message
Reik Schatz
unread,
Sep 18, 2014, 5:55:55 AM9/18/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to scala...@googlegroups.com
I want to write a Doclet that generates custom html/json for classes in a specific package only. Haven't found many examples or tutorials. Is there a way to unit test the Doclet, i.e. how do I create a doc.Universe for the sources I want to test?
Thx
Vlad Ureche
unread,
Sep 18, 2014, 12:02:28 PM9/18/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
I want to write a Doclet that generates custom html/json for classes in a specific package only.
Cool! Looking forward to seeing it!
Haven't found many examples or tutorials.
If the only thing you want to do is skip some packages, maybe you can use the -skip-packages flag:
$ scaladoc -help Usage: scaladoc <options> <source files> where possible scaladoc options include: ... -skip-packages <<package1>:...:<packageN>> A colon-delimited list of fully qualified package names that will be skipped from scaladoc.
Alternatively, if you want to do this in the doclet, you can override the standard Doclet, HTMLFactory and the Template generator.