exclude not excluding

I'm trying to exclude certain source files from having javadoc run against them. A common naming convention of those I want to exclude are that the class begins with an underscore (a "_"). Also, those that start with the capital letters "EJS". Here's how I have tried excluding them:

<packageset dir="${root}/Work_Flow/WorkflowBVT/appClientModule">

<include name="**"/>

<exclude name="**/_*.java"/>

<exclude name="**/EJS*.*"/>

</packageset>

However, I still see the docs for those source files I want to exclude. What am I doing wrong?

[711 byte] By [answer_pleasea] at [2007-10-2 13:04:45]
# 1
Sorry, I can't help. I'm not that familiar with Ant.-Doug
dhkramera at 2007-7-13 10:27:57 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 2

The workaround is to delete the EJS files and stub file before running the JavaDoc target (add depends target to clean up these files). These Stub and Tie Java files are not needed however the .class files are needed.

Here is sample to delete the Stub and Tie files from the EJB project:

<target name="cleanEJSFiles">

<delete>

<fileset dir="${src}/${EJB}" includes="**/_EJS*.java,**/EJS*.java,**/*_Tie.java,**/_*_Stub.java"/>

</delete>

</target>

satishsuna at 2007-7-13 10:27:57 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 3
> What am I doing wrong?You use a packageset instead of a fileset. Packagesets work on packages/package names and filesets on files (hence the names) ...
thomas.behra at 2007-7-13 10:27:57 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...