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
2010-10-13 20:50:40
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
2010-10-13 20:52:39
Ok, are you aware of any workarounds? Thanks.
Vapen
2010-10-13 20:56:04
Could I run these javadoc commands via a Runtime instance?
Vapen
2010-10-13 20:57:46
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
2010-10-14 07:09:15