gustavhallen
Programmer
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>
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>