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.

This commit is contained in:
Dawid Weiss 2020-04-11 10:36:18 +02:00
parent 8c1f9815db
commit fea1ce0062
1 changed files with 1 additions and 2 deletions

View File

@ -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()}" ]