Doclava non-standard doclet


(Miten Mehta) #1

Hi,

I am trying to use javadoc with non-standard doclet doclava http://code.google.com/p/doclava/wiki/GettingStarted. The task is giving error related to doctitlle.

$ gradle --rerun-tasks mydoc :mydocjavadoc: error - invalid flag: -doctitle

usage: javadoc [options] [packagenames] [sourcefiles] [@files] -overview

Read overview documentation from HTML file -public

Show only public classes and members -protected

Show protected/public classes and members (default) -package

Show package/protected/public classes and members -private

Show all classes and members -help

Display command line options and exit -doclet

Generate output via alternate doclet -docletpath

Specify where to find doclet class files -sourcepath

Specify where to find source files -classpath

Specify where to find user class files -exclude

Specify a list of packages to exclude -subpackages Specify subpackages to recursively load -breakiterator

Compute 1st sentence with BreakIterator -bootclasspath Override location of class files loaded

by the bootstrap class loader -source

Provide source compatibility with specified release -extdirs

Override location of installed extensions -verbose

Output messages about what Javadoc is doing -locale

Locale to be used, e.g. en_US or en_US_WIN -encoding

Source file encoding name -quiet

Do not display status messages -J

Pass directly to the runtime system

1 error :mydoc FAILED

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ‘:mydoc’. > Javadoc generation failed.

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 9.105 secs

Here is task: task mydoc(type: Javadoc) {

source = sourceSets.main.allJava

classpath = sourceSets.main.compileClasspath

exclude { it.getName().equals(‘Association.java’); }

options.docletpath = [file(‘D:/download/dsoftware/google/doclava-1.0.6/doclava-1.0.6.jar’)]

options.doclet = ‘com.google.doclava.Doclava’

options.bootClasspath = [file(‘d:/software/jdk/jdk1.6.0_38/jre/lib/rt.jar’)]

title = “Miten Doclava”

}


(Miten Mehta) #2

I learned that doctitle is attribute inherited from standard doclet. Doclava does not extend standard doclet. does gradle expect custom doclet to extend standard doclet ?

If not how to suppress standard doclet attributes set calls to avoid such error ?