ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From (Paul Arzul)
Subject problems specifing a javadoc doclet
Date Mon, 02 Oct 2000 16:09:58 GMT
i cannot get javadoc doclets to work with ant
1.1. variations on the sample below all produce a javadoc
invalid flag -d error. from the command line (outside ant),
it works dandy.

sample project:

<?xml version="1.0"?>

<project name="Doclet Test" default="jdox" basedir=".">

  <target name="jdox">
      failonerror="yes" />


typical error:

Buildfile: test.xml

  [javadoc] Generating Javadoc
  [javadoc] Javadoc execution
  [javadoc] javadoc: invalid flag: -d
  [javadoc] usage: javadoc [options] [packagenames] [sourcefiles] [classnames] [@files]
  [javadoc] -overview <file>          Read overview documentation from HTML file
  [javadoc] -public                   Show only public classes and members
  [javadoc] -protected                Show protected/public classes and members (default)
  [javadoc] -package                  Show package/protected/public classes and members
  [javadoc] -private                  Show all classes and members
  [javadoc] -help                     Display command line options
  [javadoc] -doclet <class>           Generate output via alternate doclet
  [javadoc] -docletpath <path>        Specify where to find doclet class files
  [javadoc] -1.1                      Generate output using JDK 1.1 emulating doclet
  [javadoc] -sourcepath <pathlist>    Specify where to find source files
  [javadoc] -classpath <pathlist>     Specify where to find user class files
  [javadoc] -bootclasspath <pathlist> Override location of class files loaded
  [javadoc] 			  by the bootstrap class loader
  [javadoc] -extdirs <dirlist>        Override location of installed extensions
  [javadoc] -verbose                  Output messages about what Javadoc is doing
  [javadoc] -locale <name>            Locale to be used, e.g. en_US or en_US_WIN
  [javadoc] -encoding <name>          Source file encoding name
  [javadoc] -J<flag>                  Pass <flag> directly to the runtime system
  [javadoc] 1 error


test.xml:12: Exec returned: 1

Total time: 6 seconds

suggestions appreciated,

- p

View raw message