ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: fileset with exclude not working
Date Mon, 01 Feb 2010 11:05:39 GMT
On 2010-02-01, Kamran Hameed <> wrote:

> Now there are two files and in the mpi package that i
> dont want javadoc tool to generate javadocs. So i try to exclude them using

>  <fileset dir="${mpi.dir}">
>               <exclude name="**/**"/>
>               <exclude name="**/**"/>
>           </fileset>

The trailing ** are not necessary if the files are really named and

> But i get these output instead of javadocs

>  javadoc: error - Illegal package name:
> "/export/home/kamran/parallel/mpj/src/mpi/SimplePackerByte.class"

Well, obviously you have class files inside your source tree as well, so
you must restrict your fileset to only include you sources (and
potentially package.html files).  Something like 

<fileset dir="${mpi.dir}">
    <include name="**/*.java"/>
    <include name="**/package.html"/>
    <exclude name="**/"/>
    <exclude name="**/"/>

should work.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message