From fea1ce006211a5b22a29b74022d954fe3fe2c252 Mon Sep 17 00:00:00 2001 From: Dawid Weiss Date: Sat, 11 Apr 2020 10:36:18 +0200 Subject: [PATCH] LUCENE-9278: move declaration calling getTemporaryDir inside the execution block closure so that gradlew clean renderJavadoc doesn't wipe out the temporary directory before the task has a chance to run. --- gradle/render-javadoc.gradle | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gradle/render-javadoc.gradle b/gradle/render-javadoc.gradle index bd2278919ac..c4264240f2a 100644 --- a/gradle/render-javadoc.gradle +++ b/gradle/render-javadoc.gradle @@ -51,10 +51,9 @@ allprojects { def javadocCmd = org.gradle.internal.jvm.Jvm.current().getJavadocExecutable() - def optionsFile = file("${getTemporaryDir()}/javadoc-options.txt") - doFirst { def srcDirs = sourceSets.main.java.srcDirs.findAll { dir -> dir.exists() } + def optionsFile = file("${getTemporaryDir()}/javadoc-options.txt") def opts = [] opts += [ "-overview ${file("src/java/overview.html").toString()}" ]