You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Matthieu Bentot <mb...@arantech.com> on 2002/05/10 16:17:26 UTC

[PATCH] 1.5Beta1: Javadoc doesn't set the sourcepath

Hi all,

In 1.5Beta1, Javadoc doesn't add the sourcepath value to the javadoc command
line.
AFAIK, it instead build the sourcepath from the files.
This breaks other tools that rely on Javadoc's behavior to (try to) load
dependencies files, even if it doesn't generate doc for them (namely,
xdoclet).

Regards,

Matthieu


Re: [PATCH] 1.5Beta1: Javadoc doesn't set the sourcepath

Posted by Stefan Bodewig <bo...@apache.org>.
On Fri, 10 May 2002, Matthieu Bentot <mb...@arantech.com> wrote:

> In 1.5Beta1, Javadoc doesn't add the sourcepath value to the javadoc
> command line.

It does, but only if (1) you have specified packages to document and
(2) the referenced directories actually hold .java files for the
packages you want to document.

> AFAIK, it instead build the sourcepath from the files.

It does so in addition to the specified sourcepath.

> This breaks other tools that rely on Javadoc's behavior to (try to)
> load dependencies files, even if it doesn't generate doc for them
> (namely, xdoclet).

Which dependency files may that be?

I've made the change because of this snippet from JDK 1.3's javadoc
documetation:

: Note that you can use the -sourcepath option only when passing
: package names into the javadoc command

So, no package names, no -sourcepath.

In what situation is Ant's current code ommitting stuff that you need?

Stefan

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>