changeset 11023:e174f0b0fb51

8209358: Broken links in API docs for css page, fxml page, and all image files Reviewed-by: prr
author kcr
date Fri, 10 Aug 2018 15:02:36 -0700
parents 812efc1ce801
children 8893cc75d0ee 15770e65250e
files build.gradle
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/build.gradle	Tue Aug 07 19:34:58 2018 -0700
+++ b/build.gradle	Fri Aug 10 15:02:36 2018 -0700
@@ -4423,7 +4423,10 @@
         ]);
 
     doLast {
+        // FIXME: remove JDK 10 logic once minimum JDK is bumped to 11
+        def isBootJdk10 = jdkVersion.startsWith("10")
         projectsToDocument.each { p ->
+            def destDir = isBootJdk10 ? "$buildDir/javadoc" : "$buildDir/javadoc/${p.ext.moduleName}"
             copy {
                 from("$p.projectDir/src/main/docs") {
                     include "**/*.html"
@@ -4435,7 +4438,7 @@
                     exclude "**/*.html"
                 }
 
-                into "$buildDir/javadoc"
+                into destDir
             }
         }
     }