Javadoc or Doxygen?
4.a Modify Hudson Job.
Once you have an Ant target working, calling this from your CI server is trivial. Within Hudson, select your Job, click on configure and add this new target to be called when running the build.
4.b Publish the reports.
4. c: Sample Reports.
Force a build, and take a detailed look at the reports generated by Doxygen as shown below:
I have given you a brief overview of Doxygen in this article, how to configure the same, and use it effectively to generate technical documentation on a continuous basis; either on commit builds or nightly builds. The Doxygen web site has lots of information on how to use it with other programming languages and also has tutorials in languages other than English as well.
As always, if you are having trouble getting Doxygen to work, leave a comment or check out the Doxygen web site.
- « first
- ‹ previous
- 1
- 2
- 3
(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)




Comments
Gian Franco Casula replied on Wed, 2008/09/10 - 10:07am
Hi Meera,
Thanks for your article, I always enjoy reading them...
I think javadoc is doing a good job and although Doxygen looks fine I wouldn't necessarily want to migrate to it.
It took some serious effort to convince people to document their code in javadoc in the first place.
Gian
Meera Subbarao replied on Wed, 2008/09/10 - 10:18am
in response to:
Gian Franco Casula
Thanks,Gian. I appreciate your comments. If you had to convince your developers to document their code in Javadoc, than you definitely need Doxygen. They have to hardly remember any HTML tags at all.
[/quote] Meera SubbaraoCollin Fagan replied on Wed, 2008/09/10 - 4:36pm
Meera Subbarao replied on Wed, 2008/09/10 - 5:14pm
in response to:
Collin Fagan
Yes indeed. If you already have Javadoc comments, you need nothing else.
Meera Subbarao
David Sills replied on Thu, 2008/09/11 - 5:58am
Meera Subbarao replied on Thu, 2008/09/11 - 7:05am
in response to:
David Sills
[quote=davidsills]Obviously, I'm going to have to try Doxygen. [/quote]
Thanks, David. Give it a try and you will be surprised how easy it is to keep the technical documentation up-to date.
Meera Subbarao
Meera Subbarao replied on Thu, 2008/09/11 - 7:16am
in response to:
rouletteroulette rouletteroulette
I blogged about this ages ago:
http://gushieblog.blogspot.com/2006/06/doxygen-versus-javadoc.html
[/quote]
Thanks for sharing the link, Paul. Interesting article.
Meera Subbarao
Philippe Lhoste replied on Fri, 2008/09/12 - 4:43am
I discovered Doxygen some years ago, and found it was a very valuable tool. I was so disappointed to see, later, that JavaDoc was so limited!
One advantage you don't seem to mention is that being HTML agnostic, it allows to output documentation in various formats like RTF, PDF or CHM.
One thing I like too is flexibility: you can use line comments as well as block comments, and even more, you don't have to put all documentation in the header of a method: you can document a function parameter directly where it is defined, Doxygen will extract the names from the code. I have seen way too often JavaDoc headers missing half of parameters (added later in the code) or referencing wrong variable names, either because they have changed or because of copy/paste of a header of another function, forgetting to update it!
PS: You have a typo: Dxoygen. :)
Meera Subbarao replied on Fri, 2008/09/12 - 5:48am
in response to:
Philippe Lhoste
One advantage you don't seem to mention is that being HTML agnostic, it allows to output documentation in various formats like RTF, PDF or CHM.
PS: You have a typo: Dxoygen. :)
[/quote]
Yes, I am not sure how I missed writing about other formats. Thanks for sharing.
Corrected the one and only typo.
Meera Subbarao
Richard Kowalsky replied on Mon, 2008/09/29 - 7:58am
Thanks for the excellent article. Tips like these go a long ways towards helping some of
us do a much more thorough job with our software development. Keep up the good work!
;-)
Mal Malper replied on Sat, 2008/11/29 - 9:26am
I am using a std. header we have set in our software division to work for C++ code and also for other documentation preperation.
We have a significant amount of Java code too. Since our priority is Docygen , recently I was trying to port written java code documentation to Doxygen.
However I could not prepare the html doxygen outputs correctly with the Java class headers we had. So I modified one or two headers, like the way we have done for C++ so that we would use one doc tool for both java and C++. Now the java headeer works well work for Doxygen.
We have some guys who prefer Javadocs. So I was trying to use Javadocs with the new Java header I created (that works with Doxygen). But now I cannot produce the proper Javadoc html with that header.
So it seems that 100% javadoc working header comments does not work 100% with Doxygen and vise versa.
I cannot change the C++ std header style we use as that is our standard.
But I am trying hard to get this headers working in Javadocs.
Willing to post a sample header if someone here has any ideas.
Thanks
MP
john green green replied on Fri, 2009/10/23 - 2:07am
john green green replied on Sun, 2009/10/25 - 8:50am
Jose Marquez replied on Wed, 2010/02/17 - 2:00am
Bhaskar Rao replied on Wed, 2011/01/19 - 11:30pm
Thanks for your article, really it is very helpful to understand Doxygen. Currently we are planning to switch to Doxygen from Javadoc for technical documentation.
Our project is on Windows platform using Java, we are using ant script for build purpose. I am very new to ant script and not able to find much help on "How to configure and use the Doxygen tool using ant script on Windows platform.
I need your help on this. Please... help me.
Regards,
Bhaskar
Carla Brian replied on Fri, 2012/06/22 - 8:33pm