Add a comment explaining the -quiet parameter for adding javadoc options

This commit is contained in:
Ryan Ernst 2015-11-19 11:06:47 -08:00
parent c3cb1fd08c
commit eb09d0b680
1 changed files with 4 additions and 0 deletions

View File

@ -98,6 +98,10 @@ subprojects {
} }
// ignore missing javadocs // ignore missing javadocs
tasks.withType(Javadoc) { Javadoc javadoc -> tasks.withType(Javadoc) { Javadoc javadoc ->
// the -quiet here is because of a bug in gradle, in that adding a string option
// by itself is not added to the options. By adding quiet, both this option and
// the "value" -quiet is added, separated by a space. This is ok since the javadoc
// command already adds -quiet, so we are just duplicating it
javadoc.options.addStringOption('Xdoclint:all,-missing', '-quiet') javadoc.options.addStringOption('Xdoclint:all,-missing', '-quiet')
} }
} }