diff --git a/docs/build.gradle b/docs/build.gradle index 9f6995f222..5bf8dd4997 100644 --- a/docs/build.gradle +++ b/docs/build.gradle @@ -112,6 +112,19 @@ task generateJavaDocs(type: Javadoc) { source configurations.javaSource.collect { zipTree(it) } include '**/*.java' failOnError = true + + title = "WPILib API $pubVersion" + ext.entryPoint = "$destinationDir/index.html" + + if (JavaVersion.current().isJava11Compatible()) { + options.addBooleanOption('-no-module-directories', true) + doLast { + // This is a work-around for https://bugs.openjdk.java.net/browse/JDK-8211194. Can be removed once that issue is fixed on JDK's side + // Since JDK 11, package-list is missing from javadoc output files and superseded by element-list file, but a lot of external tools still need it + // Here we generate this file manually + new File(destinationDir, 'package-list').text = new File(destinationDir, 'element-list').text + } + } } tasks.register("zipJavaDocs", Zip) { diff --git a/wpilibc/src/main/native/include/frc/Filesystem.h b/wpilibc/src/main/native/include/frc/Filesystem.h index baf8044dee..d7675d611c 100644 --- a/wpilibc/src/main/native/include/frc/Filesystem.h +++ b/wpilibc/src/main/native/include/frc/Filesystem.h @@ -12,6 +12,7 @@ #include "frc/RobotBase.h" namespace frc { +/** WPILib FileSystem namespace */ namespace filesystem { /**