Skip to content

Commit

Permalink
Add DOC_WERROR flag (default="true") to allow javadoc -Werror to be d…
Browse files Browse the repository at this point in the history
…isabled
  • Loading branch information
kevinrushforth committed Mar 21, 2024
1 parent af62848 commit ac20930
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,9 @@ ext.IS_LINT = LINT != "none"
defineProperty("DOC_LINT", "all")
ext.IS_DOC_LINT = DOC_LINT != ""

defineProperty("DOC_WERROR", "true")
ext.IS_DOC_WERROR = Boolean.parseBoolean(DOC_WERROR)

// Specifies whether to use the "useDepend" option when compiling Java sources
defineProperty("USE_DEPEND", "true")
ext.IS_USE_DEPEND = Boolean.parseBoolean(USE_DEPEND)
Expand Down Expand Up @@ -4278,7 +4281,7 @@ task javadoc(type: Javadoc, dependsOn: createMSPfile) {
}
options.addBooleanOption("XDignore.symbol.file").setValue(true);
options.addBooleanOption("Xdoclint:${DOC_LINT}").setValue(IS_DOC_LINT);
options.addBooleanOption("Werror").setValue(true);
options.addBooleanOption("Werror").setValue(IS_DOC_WERROR);
options.addBooleanOption("html5").setValue(true);
options.addBooleanOption("javafx").setValue(true);
options.addBooleanOption("use").setValue(true);
Expand Down

0 comments on commit ac20930

Please sign in to comment.