Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > javadoc: excluding files

Thread Tools

javadoc: excluding files

Posts: n/a
Consider the following setup of package bla:


Now consider that uses a foreign
package dodo, which may or may not be available on
the machine where javadoc is run.

When I run javadoc by specifying the package bla

javadoc -quiet -d javadoc -sourcepath src bla

on a machine without dodo, I get a compiler error
saying 'package dodo does not exist'.

When I run javadoc by specifying all *.java files

javadoc -quiet -d javadoc src/bla/

I cannot use {@link bla} anymore without getting a
warning about a '@link: reference not found'.

Obviously I would like to exclude
from javadoc while calling it on the package
name. (Note: I am not asking for automatic
exclusion. This would be taken care of by the
build environment.)

Below you find code for two class files of package
bla to demonstrate the problem.

Any solutions?


package bla;
import dodo.*;
* <p>A class which only compiles if a certain piece of software is
* available in the classpath, exemplified by the import above.</p>
public class Trouble {
package bla;
* <p>some nice doc referencing the package {@link bla}.</p>
public class Bla {

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
excluding non-data files from distutils package_data Robin Becker Python 0 12-22-2008 12:32 PM
Precompilation / excluding files ASP .Net 2 02-14-2006 06:31 PM
Excluding files Mark Rae ASP .Net 4 12-28-2005 08:37 PM
Searching but excluding zip files Steve Freides Computer Support 1 12-30-2003 05:19 AM
Excluding certain files from forms authentication Paul Cook ASP .Net 1 08-07-2003 05:40 PM