tags:

views:

77

answers:

2

Is it possible to programmatically generate JavaDoc files by passing in a class? If so how?

+3  A: 

JavaDoc needs access to the source. Once you compile, the comments are gone.

Lou Franco
and if he wanted to run javadoc from a program on the source, he could check the faq - http://www.oracle.com/technetwork/java/javase/documentation/index-137483.html#runfromwithin
SB
Ok, are you aware of any workarounds? Thanks.
Vapen
Could I run these javadoc commands via a Runtime instance?
Vapen
A: 

Your question only makes sense if you are also generating source code at runtime. Otherwise the same toolchain that compiles the source code can generate the Javadoc.

EJP