Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Javadoc with several projects

Status
Not open for further replies.

gustavhallen

Programmer
Sep 29, 2006
1
SE
Hello,
Do you have expirience of generating javadoc with an ant file (build.xml) for several projects to the same destination? I would like to have one javadoc for all projects at the same place. I manage to run my script for some of the projects and I it is no problem running
them once at a time, but when I include more of them it seems that the resulting command is too long to handle.

The ant script is pasted below.

Best regards,
Gustav Hallén

<target name="javadoc" depends="init">
<delete dir="${javadoc}"/>
<mkdir dir="${javadoc}"/>
<javadoc packagenames="**" destdir="${javadoc}">
<classpath>
<pathelement path="../proj1/${build}"/>
<pathelement path="../proj2/${build}"/>
<pathelement path="../proj3/${build}"/>
<pathelement path="../proj4/${build}"/>
<pathelement path="../proj5/${build}"/>
<pathelement path="../proj6/${build}"/>
<pathelement path="../proj7/${build}"/>
<pathelement path="../proj8/${build}"/>
<pathelement path="../proj9/${build}"/>
</classpath>
<fileset dir="../">
<include name="proj1/**/*.java"/>
<include name="proj2/**/*.java"/>
<include name="proj3/**/*.java"/>
<include name="proj4/**/*.java"/>
<include name="proj5/**/*.java"/>
<include name="proj6/**/*.java"/>
<include name="proj7/**/*.java"/>
<include name="proj8/**/*.java"/>
<include name="proj9/**/*.java"/>
</fileset>
</javadoc>
</target>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top