[GRADLE-1563] Javadoc Plugin does not generate correct command line options for tags and targlets Created: 19/May/11 Updated: 04/Jan/13 Resolved: 20/Dec/11
|Reporter:||Howard M. Lewis Ship||Assignee:||Peter Niederwieser|
I'm attempting to use a custom taglet when generating JavaDoc.
I'm specifying the taglet, the FQCN of my Taglet class:
The generated arguments file shows something odd:
It should not be "-tags", it should be "-taglet". Even "-tags" is
StandardJavadocDocletOptions is treating tags and taglets like they
My workaround is to replace the taglets configuration with:
I believe this is a bug. In fact, I think I see several:
1. tags and taglets are not the same, they should be tracked seperately
|Comment by Steve Ebersole [ 20/Dec/11 ]|
I have run into this as well. And worse, there does not appear to be a good work around.
There is the method http://gradle.org/current/docs/javadoc/org/gradle/external/javadoc/MinimalJavadocOptions.html#contributeCommandLineOptions%28org.gradle.process.ExecSpec%29 but I have not found how to actually instantiate one of these http://gradle.org/current/docs/javadoc/org/gradle/process/ExecSpec.html unless I instantiate an Exec task.
I do not see the method "addStringOption" that Howard mentions...
|Comment by Peter Niederwieser [ 20/Dec/11 ]|
Just call "options.addStringOption()". It's a method on the implementation class, not part of the public API.
|Comment by Stefan Simroth [ 02/Feb/12 ]|
Great that this will be fixed in the next release and that there exists a workaround!
This did it for me with 1.0-milestone7:
Just FYI, there seems to be a duplicate issue that could also get resolved, see