You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Ernst Plüss <er...@yahoo.com> on 2001/09/06 12:37:54 UTC

how to exclude packages from javadoc

Hi All

I've a ant script to build javadoc. This works fine as
long as I want to generate the javadoc of my whole
project. I just specify the appropriate package
wildcard in the pachagename property.

<javadoc private="true" destdir="./JavaDoc"
packagenames="ch.corix.*" sourcepath="."
verbose="true">

But I've two packages named ch.corix.Prototype and
ch.corix.Dia which I want to exclude from the
generated javadoc. Can somebody tell me how I can do
this, without listing all other packages in the
pachagenames?

TIA
Ernst Pluess

__________________________________________________________________
Do You Yahoo!?
Gesendet von Yahoo! Mail - http://mail.yahoo.de

Re: how to exclude packages from javadoc

Posted by Glenn McAllister <gl...@somanetworks.com>.
Ernst Plüss wrote:

> But I've two packages named ch.corix.Prototype and
> ch.corix.Dia which I want to exclude from the
> generated javadoc. Can somebody tell me how I can do
> this, without listing all other packages in the
> pachagenames?

In Ant 1.4 (not sure about previous releases) use

<javadoc ...
  packagenames="ch.corix.*"
  excludepackagenames="ch.corix.Prototype,ch.corix.Dia"
  ... />

or use the nested elements

<javadoc ... >
  <package name="ch.corix.*" />
  <excludepackage name="ch.corix.Prototype" />
  <excludepackage name="ch.corix.Dia" />
</javadoc>


Glenn McAllister
SOMA Networks, Inc.