Create Javadocs
Hi, I have a folder named package. Inside package, there are many folders which are created dynamically. How can I create javadocs for the java files in these folders with just one javadoc command? Currently, I am using c:\package>javadoc *.* (This works only if the java files are in the folder package). However now I want to create javadocs for the folders inside package.
Anybody out there knows how to create javadocs for the folders inside package with just one javadoc command? Thanks.
[516 byte] By [
chelleong] at [2007-9-26 3:19:15]

hell yeah!!
Check out Ant.It's part of the apache jakarta project.
Ant is a build tool like make with out the problems of make.
make a build.xml file (like Makefile) and add the following target:
<property name="SOURCE_DIR" value="."/>
<property name="API_DIR" value="$./api"/>
<target name="doc" description="">
<!-- Create the documentation directory -->
<delete dir="${API_DIR}"/>
<mkdir dir="${API_DIR}"/>
<javadoc
sourcepath="${SOURCE_DIR}"
destdir="${API_DIR}"
></javadoc>
</target>
save it and then just run "ant doc".
Ant will pick up all the folders. you've got to try it out.
http://jakarta.apache.org/ant/index.html