ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From patri...@exinet.co.za (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:

---8<---
<?xml version="1.0"?>

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

  <target name="jdox">
    <javadoc
      sourcepath="."
      destdir="."
      packagenames="*"
      doclet="com.componentregistry.javadox.JavaDox"
      docletpath="javadox.jar"
      failonerror="yes" />
  </target>

</project>
--->8---


typical error:

---8<---
Buildfile: test.xml

jdox:
  [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] 
  [javadoc] 1 error

BUILD FAILED

test.xml:12: Exec returned: 1

Total time: 6 seconds
--->8---

suggestions appreciated,
tia,

- p


Mime
View raw message