Problems with FileSet in Ant script?

Posted by ipkiss on Stack Overflow See other posts from Stack Overflow or by ipkiss
Published on 2010-05-07T04:54:49Z Indexed on 2010/05/07 4:58 UTC
Read the original article Hit count: 296

Filed under:
|

Hi,

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

© Stack Overflow or respective owner

Related posts about fileset

Related posts about ant