ant-user mailing list archives

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

> Now there are two files Sum.java and Band.java 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="**/Band.java**"/>
>               <exclude name="**/Sum.java**"/>
>           </fileset>

The trailing ** are not necessary if the files are really named
Band.java and Sum.java.

> 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="**/Band.java"/>
    <exclude name="**/Sum.java"/>
</fileset>

should work.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message