I am using Ant script to generate javadoc and I just only wnt Ant to look for some classes based on a certain pattern, so I wrote:
<javadoc access="public" source="1.6" sourcepath="src" destdir="dest" >
<fileset dir="src" casesensitive="yes" defaultexcludes="yes">
<filename name="**/ABC*.java"/>
</fileset>
</javadoc>
That means I only want Ant to look for source file that starts with “ABC” only and generate javadoc for these files. However, the results are awayls duplicate for each file starting with “ABC”.
Did I do something wrong?
Thanks
The problem comes in from using both the
sourcepathattribute and the nestedfilesettag. If you scrap thesourcepathand just have thefileset, you ought to be fine. i.e., instead ofjust do: