There is a way, but it may not be the answer you are looking for.

I had the same issue with my open source project
(http://sourceforge.net/projects/thorn). What I did is to move the JUnit
source code out of the main source directory. For example, here is how I
divided the source code:

/thorn/
        /src/
                /thorn/
                        /a.java
                        /b.java (etc.)
        /test/
                /thorn/
                        /atest.java
                        /btest.java


This way, the classes are all in the same package (i.e. thorn), but the
source files are divided between the normal source and the unit tests.
Therefore, when I run JavaDoc, I only add the /src/ directory to the
sourcepath attribute, so I never generate javadoc for the unit tests.

- Jeff Davies



-----Original Message-----
From: Anuj Agrawal [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 22, 2001 2:15 PM
To: [EMAIL PROTECTED]
Subject: javadoc


When using ANT to generate javadoc, is there a way to exclude certain files
from
being used?  E.g. *Test.java
(We're using the Junit framework and want to exclude test files/classes.)

Thanks.
Anuj.

Reply via email to